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