PHP 4.0 Bug #9277: Bogus warning with rand(a,b) where a == b

From: Date: Thu, 15 Feb 2001 12:43:35 +0000
Subject: PHP 4.0 Bug #9277: Bogus warning with rand(a,b) where a == b
Groups: php.dev 
Request: Send a blank email to php-dev+get-46642@lists.php.net to get a copy of this message
From: jukkaho@mail.student.oulu.fi Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: Math related Bug description: Bogus warning with rand(a,b) where a == b $value=rand(0,0); Gives "Warning: rand(): Invalid range: 0..0 in ..." while there is nothing wrong with it. Value shouldn't be invalid. I'm expecting a value of 0 with probability of 100% without any warnings or is this a feature? -- Edit Bug report at: http://bugs.php.net/?id=9277&edit=1

« previous php.dev (#46642) next »