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 使用
最新推荐文章于 2025-03-16 14:00:00 发布