方法:
public static String getNumber(int numLength){
String val = "";
Random random = new Random();
for (int i = 0; i < numLength; i++) {
val += String.valueOf(random.nextInt(10));
}
return val;
}
The method of generating a fixed number of bits of the random number
Guess you like
Origin www.cnblogs.com/songtianning/p/12092973.html
Recommended
Ranking