laravel random number code example

Example 1: kotlin random number

val randomNumber = (100..200).random()

Example 2: random number generator in php

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

Example 3: php random number generator

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

Example 4: random number laravel faker

$faker->numerify('###-###-####');
// "766-620-7004"

$faker->numerify('##########');
// "3579786681"

Example 5: php random integer

echo random_int(0,50);

Example 6: php random number

rand(0,10);
or
random_int(0,10)

Tags:

Php Example