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;
1381096180
2 · seed
<? $seed = time(); srand($seed); $randreturn = rand(); echo $randreturn;
931844705