Seed the random number generator:
The mt_srand() function seeds the Mersenne Twister random number generator.
Tip: From PHP 4.2.0, the random number generator is seeded automatically and there is no need to use this function.
Parameter | Description |
---|---|
seed | Optional. Specifies the seed value |
Return Value: | None |
---|---|
Return Type: | - |
PHP Version: | 4+ |
PHP Changelog: | PHP 4.2.0: Random number generator is now seeded automatically |