PHP : mt_srand() function
Description
The mt_srand() function seeds the random number generator with seed or with a random value if no seed is given.
Version:
(PHP 4 and above)
Syntax:
mt_srand(num)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
num | An optional seed value. | Optional | Integer |
Return value
No return value.
Value Type: Integer.
See also
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/php/function-reference/mt_srand.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics