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