Changing random number generator