//随机数
function getRand($length = 4) {
$min = pow(10 , ($length - 1));
$max = pow(10, $length) - 1;
return mt_rand($min, $max);
}
PHP 任意长度的随机数
猜你喜欢
转载自blog.csdn.net/sym134/article/details/86220163
今日推荐
周排行