Skip to content

shuffle

Syntax

shuffle(list-expression)

Parameters

list-expression
An expression that evaluates to a list, which is then shuffled.

Returns

Returns a randomly ordered copy of the given list.

Description

This action randomly orders, or shuffles, the given list, and returns this new list.

Examples

shuffle(list(1,2,3,4,5)) will return a shuffled list such as [3,1,4,5,2].

See Also