Skip to content
Lists & Helpers arrayShuffle

$arrayShuffle — Shuffles an array in place.

Shuffles an array in place.

Syntax

$arrayShuffle[array]

Parameters

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

Return Value

  • string.

Usage

$arrayShuffle[a]

Example

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