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