【java】随机生成6位的数字时间:2023-03-09 09:42:31 int radomInt = new Random().nextInt(999999); int radomInt2 =(int)((Math.random()*9+1)*100000); System.out.println(radomInt); System.out.println(radomInt2);