Queue number generator
First, you would generate a random number. Next, use a loop to the limit of the random number.The logic behind this is to implement the queue with an ArrayList. When poll is called, a random number is picked (next) and the ArrayList is split and recombined so that next is at the front of the ArrayList, then remove the first element. queue number generator
You only need ONE Random number generator that simulates the number of clients arriving. Starting with the first Queue, you will add clients to the Queue (line) until it reaches 10 cleints. At that point you need to go to another Queue to add the rest of the clients.