note 9937 added to rand
| From: | korosh_afshar at yahoo dot com | Date: | Sat, 02 Dec 2000 21:48:17 +0000 |
| Subject: | note 9937 added to rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8348@lists.php.net to get a copy of this message | ||
On solari, I get the below error with the SourceForge installation:
Warning: rand(): Invalid range: 0..1000000 in
/export/home/Uploads/SF2.0/www/register/projectname.php
The rand function is defined as such in the projectname.php file:
srand((double)microtime()*1000000);
$random_num=rand(0,100000);
is this a bug with solaris 2.6??
http://www.php.net/manual/function.rand.php