made some changes to the random number degerator

please enter the commit message for your changes. Lines starting