Lists & Helpers
arrayRandomIndex
$arrayRandomIndex — A random valid index (-1 for an empty array).
A random valid index (-1 for an empty array).
Syntax
$arrayRandomIndex[array]
Parameters
- array (text, required) — Name of the array.
Return Value
- string.
Usage
$arrayRandomIndex[a]
Example
$sendMessage[$arrayRandomIndex[a]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.