Genrate Random Integer 10 digits in php

47

<?php
$FourDigitRandomNumber = mt_rand(1111,9999);
echo $FourDigitRandomNumber;
?>
$digits = 3;
echo rand(pow(10, $digits-1), pow(10, $digits)-1);

Comments

Submit
0 Comments