SyntaxFix
Write A Post
Hire A Developer
Questions
This is another simple solution to generate random number of N digits:
$number_of_digits = 10; echo substr(number_format(time() * mt_rand(),0,'',''),0,$number_of_digits);
Check it here: http://codepad.org/pyVvNiof