Random随机数,while(true)
Random ra=new.Random();int a=ra.nextInt(一个数字);比如nextInt(10),------------[0,10),表示0<=a<10但是如果想取到0<a<=10…(0,10]↓