[PHP-DEV] Bug #3085: rand doesn't seem to use the min, max parameteres. worked fine in 3.0.12 From: andreas.linde <email protected>
Date: 01/03/00

From: andreas.linde <email protected>
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/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>