Posted by PtitRun on 03/30/05 13:37
For example :
$number = mt_rand(1,1000000);
-----Message d'origine-----
De : William Stokes [mailto:kalles@operamail.com]
Envoyé : mercredi 30 mars 2005 12:02
À : php-general@lists.php.net
Objet : [PHP] 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
[Back to original message]
|