hi everyone i need help to create a script in order to create random 6 digit numbers, different to each other every time the script runs :rolleyes:
thanks
Have a look at [man]mt_rand()[/man]
i saw the 'mt_rand()' function, but it produces only one number randomly (with 10 digits).
how can set this function to create a different random number every time the script runs?
(in every refresh, the number does not change)
you need to use a different "seed" everytime the script runs try
<? $x = 0; //low number $y = 99; //high number mt_srand(time()); echo mt_rand($x,$y); ?>
that will do
thanks a lot "pjleonhardt"