put a limit on the number of random numbers