Skip to content
Lists & Helpers arrayRandomValue

$arrayRandomValue — A random item.

A random item.

Syntax

$arrayRandomValue[array]

Parameters

  • array (text, required) — Name of the array.

Return Value

  • string.

Usage

$arrayRandomValue[a]

Example

$arrayLoad[a;,;3,1,2]
$sendMessage[$arrayRandomValue[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.