Answers for "How to generate unique random number in PHP"

PHP
12

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);
?>
Posted by: Guest on July-11-2020
0

php unique random number

$uniqueCode = md5(uniqid(rand(), true)); echo $uniqueCode;
Posted by: Guest on March-24-2021
0

generate unique random number php

<?php
$n=range(11,20);
shuffle($n);
for ($x=0; $x< 10; $x++)
{
echo $n[$x].' ';
}
echo "\n"
?>
Posted by: Guest on November-28-2020

Code answers related to "How to generate unique random number in PHP"

Browse Popular Code Answers by Language