Re: Really random ?

From: Date: Wed, 04 Mar 2009 14:52:02 +0000
Subject: Re: Really random ?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-43252@lists.php.net to get a copy of this message
Kenan Sulayman wrote:
The rand(x) function alters the avg in 5M iterations really by just 0.1 ? Wow, that's creepy. Is there any way - to make it better ( or a bit as good as the m_twister is ? ) ?
there's a reason why mt_rand() is referred to as "Generate a better random value" in the rand() documentation ;) And i can't resist to add http://web.archive.org/web/20011027002011/http://dilbert.com/comics/dilbert/archive/images/dilbert2001182781025.gif -- Hartmut Holzgraefe, MySQL Regional Support Manager, EMEA Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering

« previous php.internals (#43252) next »