Added random number generator to problem 2.15