标签:java targe baidu amp com tar exti lan ext
Random rand = new Random();
int i = rand.nextInt(); //int范围类的随机数
i = rand.nextInt(100); //生成0-100以内的随机数
i = (int)(Math.random() * 100); //0-100以内的随机数,用Matn.random()方式
标签:java targe baidu amp com tar exti lan ext
原文地址:https://www.cnblogs.com/yachao1120/p/10124711.html