产生某个区间的随机整数 int #Java时间:2023-08-03 16:35:38 int max = Integer.MAX_VALUE; int min = 1; Random random = new Random(); int s = random.nextInt(max)%(max-min+1) + min;