import java.util.Random;
public class text_12 {
public static void main(String[] args) {
String a = "qwertyuioplkjhgfdsazxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM";
int[] c = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
char[] chars = a.toCharArray();
Random rm = new Random();
StringBuilder sb = new StringBuilder();
//int i = rm.nextInt(chars.length);
//System.out.println(i);
for (int i = 0; i< 4; i++) {
int i1 = rm.nextInt(chars.length);
char aChar = chars[i1];
sb.append(aChar);
}
int i3 = rm.nextInt(10);
int i4 = c[i3];
char[] chars1 = sb.append(i4).toString().toCharArray();
//System.out.println(chars1);
int i1 = rm.nextInt(2);
char temp = chars1[i1];
chars1[i1] = chars1[chars1.length - 1];
chars1[chars1.length - 1] = temp;
String result = new String(chars1);
System.out.println(result);
}
}你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
