Does array_rand need to be seeded?
| From: | Matt Grimm | Date: | Wed, 28 May 2003 22:12:13 +0000 |
| Subject: | Does array_rand need to be seeded? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149324@lists.php.net to get a copy of this message | ||
The manual entry for array_rand states:
"Don't forget to call srand() to seed the random number generator."
However, the srand page states this:
"Note: Since PHP 4.2.0 it's no longer necessary to seed the random number generator before
using it."
Is the 'random number generator' identical for all PHP random functions? So I'm
*not* required to seed any of them?
Thanks,
--
Matt Grimm