Random random = new Random();
int s = random.nextInt(max)%(max-min+1) + min;
产生任意范围随机数
最新推荐文章于 2022-09-13 18:23:11 发布
Random random = new Random();
int s = random.nextInt(max)%(max-min+1) + min;