php random number generator
snippet in php

random number generator in php

user7212

you can use rand() function for that in php.
Example:
Generate random numbers between 1 to 50
<?php
  echo rand(1,50);
?>

php random integer

user7392

echo random_int(0,50);

php random number generator

user7383

<?php
  echo rand(1,50);
?>

php rand int

user6161

random_int ( int $min , int $max );