Re: Generating Random Numbers with Normal Distribution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 10, 2007 2:37 PM, Stephen Johnson <maillists@xxxxxxxxxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux