【java】随机生成6位的数字

方法一:
随机生成6位的数字
int radomInt = new Random().nextInt(999999)
方法二:
int radomInt =(int)((Math.random()9+1)100000)

原文地址:https://www.cnblogs.com/jpfss/p/7506313.html