rewrited random numbers