Making the global variables used in random number generation unique