Answers for "php unique random number"

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

randstring php

<?php 
    $random = substr(md5(mt_rand()), 0, 7);
    echo $random;
?>
Posted by: Guest on April-21-2020
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 "php unique random number"

Browse Popular Code Answers by Language