Added method to generate list of random numbers