Php srand
From w3cyberlearnings
Contents |
PHP function srand
This function sets the seed for the random number generator.
Syntax srand
X is optional and its value is an integer.
srand()
Note
Up to PHP v.4.2.0, there is no need to seed the random number.
Example 1
<?php srand(mktime()); echo rand(); ?>
Output
28419