change random number generation