跳到主要内容

math.shuffle_select

从数组中随机选择一个元素

声明

mixed math.shuffle_select(array arr)

参数

参数名描述
arr数组

返回值

随机选择的元素

使用方式

返回文档