#23493 [Opn->Csd]: RAND() Not producing a random number.
ID: 23493
User updated by: david at buro9 dot com
Reported By: david at buro9 dot com
-Status: Open
+Status: Closed
Bug Type: Math related
Operating System: RedHat 7.3
PHP Version: 4.3.1
New Comment:
Just got my host to recompile PHP and now it's working and I can't
reproduce the error.
Seems like it was just a quirk of a build. Sorry for bothering you all
:)
Previous Comments:
------------------------------------------------------------------------
[2003-05-05 09:26:04] david at buro9 dot com
When I try and use RAND() to produce a random number, I only ever get
back the lowest whole integer.
e.g.
<?
echo rand(0,9);
?>
This will ALWAYS echo the number '0'.
I am willing to accept this may be a quirk in my system, but for the
life of me I have no pointers as to where :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23493&edit=1
Thread (2 messages)