String range = "0123456789abcdefghijklmnopqrstuvwxyz"
Random random = new Random();
//8位随即数:
for(int i=0; i<8; i++){
result.append(range.charAt(random.nextInt(range.length())));
}
return result.toString();
String range = "0123456789abcdefghijklmnopqrstuvwxyz"
Random random = new Random();
//8位随即数:
for(int i=0; i<8; i++){
result.append(range.charAt(random.nextInt(range.length())));
}
return result.toString();