uncommented the random number generation