取得两个数之间的值:
private static int nextInt(int min, int max) {
Random rand = new Random();
int value = 0;
while(value < min){
value = rand.nextInt(max);
}
return value;
}
数据管理(随机数等等)
猜你喜欢
转载自lf6627926.iteye.com/blog/1408435
今日推荐
周排行