会员号12位,前6位为100508,后6位生成不含4的随机数;密码16位数字,生成1000个不重复的。
<?php
//会员号不含4
function getRandStr($length) {
$str = '012356789';
$randString = '';
$len = strlen($str)-1;
for($i = 0;$i < $length;$i ++){ $num = mt_rand(0, $len);
$randString .= $str[$num]; }
return $randString ;
}
$chang='100508';
//password
function getpwd($len...阅读全文
作者:admin | 分类:
PHP | 阅读:
Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in
/www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line
19
|