Date: 07/23/99
- Next message: Manuel Lemos: "[PHP-DEV] Re: PHP 4.0 Bug #1843 Updated: XML module no longer finds includes"
- Previous message: christophe.massiot <email protected>: "[PHP-DEV] PHP 4.0 Bug #1856: Non-inheritance of class contructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: andrew <email protected>
Operating system: RH6
PHP version: 4.0 Beta 1
PHP Bug Type: Misbehaving function
Bug description: rand() produces values outside a specified range
Hello,
This error seems to be exactly like the one present in 3.0.6, rand() generates values outside the given range. I have run the following code many times and get numbers well above 122, and numbers below 97 too.
<?
srand((double)microtime()*1000000);
$rand = rand(97,122);
echo($rand);
?>
Regards,
Andy Pitt.
-- 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: Manuel Lemos: "[PHP-DEV] Re: PHP 4.0 Bug #1843 Updated: XML module no longer finds includes"
- Previous message: christophe.massiot <email protected>: "[PHP-DEV] PHP 4.0 Bug #1856: Non-inheritance of class contructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

