package test;
import java.util.Random;
public class RandomDemo {
public static void main(String[] args) {
Random random = new Random();
//输出5个0~100之间的随机数
for(int i=0; i<5; i++) {
System.out.print(random.nextInt(100) + " ");//2 28 14 20 12
}
}
}