srand
Description
The srand of Random for PHP note: There is no need to seed the random number generator with srand() as this is done automatically..
Syntax
srand ([ int $seed ] ) : void
Parameters
seed
An arbitrary integer seed value.
Return
No value is returned.
Examples
1 · void
<? srand(); $randreturn = rand(); echo $randreturn; ?>
813689117
2 · seed
<? $seed = time(); srand($seed); $randreturn = rand(); echo $randreturn; ?>
933567370