updated rand number max