标签:
function
generate_code(
$length
= 4) {
$min
= pow(10 , (
- 1));
$max
= pow(10,
) - 1;
return
rand(
,
);
}
生成固定位数的随机数
原文地址:http://www.cnblogs.com/handongyu/p/5756170.html