Bug #3085: rand doesn't seem to use the min, max parameteres. worked fine in 3.0.12
| From: | andreas dot linde at os2 dot org | Date: | Mon, 03 Jan 2000 13:03:28 +0000 |
| Subject: | Bug #3085: rand doesn't seem to use the min, max parameteres. worked fine in 3.0.12 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14213@lists.php.net to get a copy of this message | ||
From: andreas.linde@os2.org
Operating system: OS/2
PHP version: 3.0.13
PHP Bug Type: Misbehaving function
Bug description: rand doesn't seem to use the min, max parameteres. worked fine in 3.0.12
srand((double)microtime()*1000000);
$randval=rand(1,21);
21 is in my script a variable, with the mysql_num_rows value of a sql select.
used php module taken from http://silk.apana.org.au/apache/