Skip to content

$arrayShuffle

$arrayShuffle will shuffle the elements of the given array.

Usage

$arrayShuffle[name]

Parameters

FieldTypeDescriptionRequired
namestringArray name.true

Example(s)

1
client.command({
2
name: "array-shuffle",
3
code: `
4
$arrayJoin[array;, ]
5
$arrayShuffle[array]
6
$createArray[array;aoi.js;akarui;documents;bot]
7
`
8
});