Bug #1133: rand() works additively now

From: Date: Tue, 09 Feb 1999 19:42:38 +0000
Subject: Bug #1133: rand() works additively now
Groups: php.dev 
Request: Send a blank email to php-dev+get-4017@lists.php.net to get a copy of this message
From: cmv@easydns.com Operating system: Linux PHP version: 3.0.6 PHP Bug Type: Misbehaving function Bug description: rand() works additively now rand($a,$b) doesn't return values between $a and $b, it returns values between $a and ($a+$b). Further, if $b<$a, it generates an error. I think the error checking is correct, but the function should return values between $a and $b. This worked fine in versions prior to 3.0.6 I think. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4017) next »