fixing random number