如题所述
不要规定100以内的,只要是int型就行了
Random r = new Random(); for(int i=0;i<20;i++){ System.out.println(r.nextInt()); }