[PHP-DEV] PHP 4.0 Bug #1857: rand() produces values outside a specified range From: andrew <email protected>
Date: 07/23/99

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>