I need to create a random number with x amount of digits.
So lets say x is 5, I need a number to be eg. 35562 If x is 3, then it would throw back something like; 463
function random_number($size = 5) { $random_number=''; $count=0; while ($count < $size ) { $random_digit = mt_rand(0, 9); $random_number .= $random_digit; $count++; } return $random_number; }