15万
47万
管理员
$number = range(1,10); shuffle($number); foreach($number as $value){ echo "$value".""; }
使用range来获取数组对象1--10,使用shuffle来打散获取随机值
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|宜信同城网交流论坛 ( 闽ICP备19021048号 )
GMT+8, 2026-8-2 11:27 , Processed in 0.027971 second(s), 13 queries , Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.