Seeding for php functions
| From: | Gerard Samuel | Date: | Sat, 24 Aug 2002 21:33:24 +0000 |
| Subject: | Seeding for php functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113978@lists.php.net to get a copy of this message | ||
Im using array_rand() and shuffle() in my scripts.
Im seeding using mt_srand().
I noticed the manual didn't suggest that mt_srand() can be used to seed array_rand() and shuffle() but the older srand().
The mt_srand man page states that its a drop in replacement for srand().
I just would like to double check with the gurus that mt_srand() can be used to seed array_rand() and shuffle().
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/