RE: [PHP] seeding using mt_srand();
| From: | Phil Schwarzmann | Date: | Wed, 16 Oct 2002 12:45:06 +0000 |
| Subject: | RE: [PHP] seeding using mt_srand(); | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120179@lists.php.net to get a copy of this message | ||
Yeah, I read that,I'm using PHP 4.04...so I do need to see the random
generator.
-----Original Message-----
From: bbonkosk@tampabay.rr.com [mailto:bbonkosk@tampabay.rr.com]
Sent: Wednesday, October 16, 2002 11:35 AM
To: Phil Schwarzmann; php-general@lists.php.net
Subject: Re: [PHP] seeding using mt_srand();
What Version :-)
Check the manual, it has an interesting note:
Note: Since PHP 4.2.0 it's no longer necessary to seed the random number
generator before using it.
HTH
-Brad
> Let's say you have a simple PHP file that just displays a random
number.
> When the user hits the submit button, the page will reload and display
> another random number.
>
> How often do you need to call mt_srand(); ? Just once? Or each time
> the page gets reloaded?
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php