fixed issue with reading to end of random number file