changing randomization

generating random numbers more than once.