fixed references to random number generator after moving code