Random aRandom = new Random();
for (int i = 0; i < 40; i++){
System.out.println(aRandom.nextInt(10) + 1);
}
1
solved How to get 40 random numbers ranging from 1-10 in java? [closed]
Random aRandom = new Random();
for (int i = 0; i < 40; i++){
System.out.println(aRandom.nextInt(10) + 1);
}
1
solved How to get 40 random numbers ranging from 1-10 in java? [closed]