added loop to add random numbers to list
the generate nums function now works and produces a file containing a list of randomly generated numbers
got stuck here