Sharing a PHP code to generate 16-digit random numbers, two methods for PHP to generate random numbers.
Method 1
The code is as follows:
$a = mt_rand(10000000,99999999);
$b = mt_rand(10000000,99999999);
echo $a.$b;
Method 2:
$a = range(0,9);
for($i=0;$i<16;$i++){
$b[] = array_rand($a);
} // www.yuju100.com
var_dump(join("",$b));
//Result string(16) "0179571910024734"