1.
//生成1——3的随机数
int x = 1 + (int) (Math.random() * 3);
2.
//生成一个随机6位数
Random rand = new Random();
long l = 0;
for (int i = 0; i < 11; i++) {
l = (long) (rand.nextDouble() * 100000000L + 10000000);
System.out.println("135"+l);
}
while (i < 1) {
System.out.println(getSjh(6));
i++;
}
3.
随机日期