PHP srand() - Math Functions
What is srand Function?
The "srand()" function seeds a random number to the random number generator rand(). This function should be called only once, and should be called before the rand() function.
In the above syntax "seed" is the optional value which can be a random number seed.
In the above example the seed value is provided using the function mktime(), then a random number is generated.