-
Notifications
You must be signed in to change notification settings - Fork 0
Util.random.index()
github-actions[bot] edited this page Sep 30, 2024
·
2 revisions
randomly chooses an index from an array or object
type: Function
arguments:
- object
Array/Object
util.random.index([ "a", "b", "c" ]); // 2
util.random.index({ key1: "val1", key2: "val2", key3: "val3" }); // 1
π Client |
π AddonService |
π AttachmentService |
π ChannelService |
π CommandService |
π ComponentService |
π ErrorService |
π EventService |
π ExpressionService |
π GuildService |
π LogService |
π MessageService |
π PermissionService |
π RoleService |
π StorageService |
π TypeService |
π UserService |
π UtilService |
π VoiceService |