Program the generates the appropriate random numbers