improve random number generator2