Create a Randoms application that generates 16 random numbers between 1 and 100, inclusive and displays them in rows of 4.
So here's what I have so far:
import java.util.Random;
class randoms {
public static void main(String args[]){
Random number = new Random();
int num = 0;
int total = 16;
while(num < 11){
num = 1+number.nextInt(100);
System.out.println(num);
}
}
}
Except that this code can only generate one random number when you run it, how do you generate multiple random numbers?