Date: 01/03/00
- Next message: Stanislav Malyshev: "[PHP-DEV] rand() memory leak"
- Previous message: amarie <email protected>: "[PHP-DEV] Bug #3084: MkTime(0,0,0,$mm,$dd,$yyyy); return -1 (error) if $yyyy < '1902'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Stanislav Malyshev: "[PHP-DEV] rand() memory leak"
- Previous message: amarie <email protected>: "[PHP-DEV] Bug #3084: MkTime(0,0,0,$mm,$dd,$yyyy); return -1 (error) if $yyyy < '1902'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

