import java.util.Random;标签:...,Random,20,int,random,随机数,public,Jaa From: https://blog.51cto.com/softo/6022982
public class WindowOnTop {
public static void main(String[] args) {
Random random =new Random();
for(int i=1;i<11;i++){
int n =random.nextInt(20); //产生0到20之间的随机数
System.out.println("第"+i+"次产生的随机数为:"+n+"\t2011.12.03 Saturday by friendan!\n");
}
}
}