Finished random number generator modifications