(int) ((Math.random() * 9 + 1) * 100000)
要几位就乘以* 100000多少个0,超过最大位数就拼接一下。
比如:(int) ((Math.random() * 9 + 1) * 1000000) + (int) ((Math.random() * 9 + 1) * 100000)
(int) ((Math.random() * 9 + 1) * 100000)
要几位就乘以* 100000多少个0,超过最大位数就拼接一下。
比如:(int) ((Math.random() * 9 + 1) * 1000000) + (int) ((Math.random() * 9 + 1) * 100000)