random integer in a range php code example
Example 1: php random number
// $min and $max are optional
rand($min,$max);
Example 2: php random integer
echo random_int(0,50);
// $min and $max are optional
rand($min,$max);
echo random_int(0,50);