PHP怎么固定随机出号几分钟时间再变

2026年09月24日 23:59
有1个网友回答
网友(1):

PHP怎么固定随机出号
/* 生成随机数 */
function randKeys($len=5){
$str='0123456789';
$rand='';
for($x=0;$x<$len;$x++){
$rand.=($rand!=''?',':'').substr($str,rand(0,strlen($str)-1),1);
}
return $rand;
}