Random random = new Random(50);
for (int j = 0; j < 8; j++) {
System.out.print(" " + random.nextInt(100) + ", ");
}
System.out.println();
for (int j = 0; j < 8; j++) {
System.out.print(" " + random.nextInt(100) + ", ");
}
System.out.println();
Random random2 = new Random(50);
for (int j = 0; j < 8; j++) {
System.out.print(" " + random2.nextInt(100) + ", ");
}
System.out.println();
for (int j = 0; j < 8; j++) {
System.out.print(" " + random2.nextInt(100) &
java random seed 使用
最新推荐文章于 2023-07-19 09:20:52 发布