public static int nextInt(int low, int high) { int temp; temp = (int)(Math.random()*(high-low)+low); return temp; }
实现随机整数[a,b),大于等于a,小于b
最新推荐文章于 2021-05-17 10:15:51 发布
public static int nextInt(int low, int high) { int temp; temp = (int)(Math.random()*(high-low)+low); return temp; }