rand_int php code example
Example 1: php random number
// $min and $max are optional
rand($min,$max);
Example 2: php random number
rand(0,10);
or
random_int(0,10)
Example 3: randstring php
<?php
$random = substr(md5(mt_rand()), 0, 7);
echo $random;
?>