how to make a random number generator in php code example Example: php random number // $min and $max are optional rand($min,$max);