RE: Generate random number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For example :

$number = mt_rand(1,1000000);

-----Message d'origine-----
De : William Stokes [mailto:kalles@xxxxxxxxxxxxx] 
Envoyé : mercredi 30 mars 2005 12:02
À : php-general@xxxxxxxxxxxxx
Objet :  Generate random number

Hello

How can I generate a ramdom number let's say between 1- 1 000 000 and store 
it in a variable?

Thanks
-Will

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux