ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 数组中随机提取一个 | 传入参 | 说明 | | --- | --- | | arr | \[ 必填 \] 数组 | * 案例 ~~~ $arr = []; $arr[] = ['1','1']; $arr[] = ['2','2']; $arr[] = ['3','3']; $obj = $T_R->rand_value($arr); ~~~ > ["1","1"]