// $min and $max are optional rand($min,$max);
<?php echo rand(1,50); ?>
random_int ( int $min , int $max );
echo random_int(0,50);