String s="";
String arrykey[]={"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
Random x=new Random(); for(int i=1;i<=6;i++){
String temp=null;
int tempnum=x.nextInt(35);
temp=arrykey[tempnum];
s=s+temp;
}
System.out.println(s);
String arrykey[]={"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
Random x=new Random(); for(int i=1;i<=6;i++){
String temp=null;
int tempnum=x.nextInt(35);
temp=arrykey[tempnum];
s=s+temp;
}
System.out.println(s);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货