fixed repeatition issue with random number