Assignment #8
#include <stdlib.h> instead of rand2.h
Before the for loop, add the srand(1963). This provides seed to the random number generator. This number must be the year of your birth.
Replace the rGen.nextrand with ((rand()%100)/100.0).
For the bonus, you can try to change the simulation to be more realistic and interesting. Also provide useless statistical information such as average/maximum waiting time, average/maximum length of the queue, number of people who left the theater because they couldnt watch the movie they wanted to watch.