PHP 4.0 Bug #6330: rand() and mt_rand() caches their result

From: Date: Thu, 24 Aug 2000 10:40:15 +0000
Subject: PHP 4.0 Bug #6330: rand() and mt_rand() caches their result
Groups: php.dev 
Request: Send a blank email to php-dev+get-30493@lists.php.net to get a copy of this message
From: dave@arthistory.cc Operating system: RHL 6.1 and RHL 6.2 PHP version: 4.0.0 PHP Bug Type: Scripting Engine problem Bug description: rand() and mt_rand() caches their result Hi, I have experienced real troubles with rand() and mt_rand(). It seems to cache the result from previously execution. My function seems to generate the same random-numbers annoyinly often... I think it's quite weird that both random function so often generates the same values between a given range! I'm not that experienced with PHP, but I do know for sure that it's not my scriptingcode that's messy... I would be glad to help! -------MORE INFO--------- Code: www.arthistory.cc/rand.txt Script: www.arthistory.cc/html2/fantasy_main.php php-info: www.arthistory.cc/info.php Best Regards Dave

« previous php.dev (#30493) next »