Generates a given amount of random numbers