【java】随机生成6位的数字
程序员文章站
2022-05-14 09:49:00
int radomInt = new Random().nextInt(999999); int radomInt2 =(int)((Math.random()*9+1)*100000); System.out.println(radomInt); System.out.println(radomI... ......
int radomint = new random().nextint(999999);
int radomint2 =(int)((math.random()*9+1)*100000);
system.out.println(radomint);
system.out.println(radomint2);
上一篇: MapReduce基础