//用php的str_shuffle函数:
<?php
$randStr = str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890');
$rand = substr($randStr,0,6);
?>
PHP生成6位永不重复的随机数
最新推荐文章于 2024-01-29 23:27:55 发布
//用php的str_shuffle函数:
<?php
$randStr = str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890');
$rand = substr($randStr,0,6);
?>