// $min and $max are optional rand($min,$max);
echo random_int(0,50);
rand(0,10); or random_int(0,10)
random_int ( int $min , int $max );
rand();