Re: Generating Random Numbers with Normal Distribution
| From: | Stephen Johnson | Date: | Mon, 10 Dec 2007 19:42:55 +0000 |
| Subject: | Re: Generating Random Numbers with Normal Distribution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265619@lists.php.net to get a copy of this message | ||
LOL..
Guess I need to keep up with the change log a little better...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
> From: Nathan Nobbe <quickshiftin@gmail.com>
> Date: Mon, 10 Dec 2007 14:40:36 -0500
> To: Stephen Johnson <maillists@thelonecoder.com>
> Cc: AmirBehzad Eslami <behzad.eslami@gmail.com>, PHP General list
> <php-general@lists.php.net>
> Subject: Re: [PHP] Generating Random Numbers with Normal Distribution
>
> On Dec 10, 2007 2:37 PM, Stephen Johnson <maillists@thelonecoder.com> wrote:
>
>> True randomization is only really possible in nature, so I am not sure you
>> ever be completely happy with programming random numbers... But it may
>> help
>> you get better results if you include srand() in your randomization code.
>
>
> the seeding methods have been deprecated; this from the manual:
>
> *Note*: As of PHP 4.2.0, there is no need to seed the random number
> generator with srand()
> <http://us3.php.net/manual/en/function.srand.php> or
> mt_srand()
> <http://us3.php.net/manual/en/function.mt-srand.php> as this
> is
> now done automatically.
>
> -nathan