int arr[] = new int[10]; Random r=new Random(); for(int i=0;i arr[i]=r.nextInt(101);//得到10个100以内的整数 }
不知道怎么随机生成10个数字