Shuffle Command

Shuffle( <List> )

Returns list with same elements, but in random order.

You can recompute the list via Recompute all objects in Menu-view.svg View Menu (or pressing F9).

CAS Syntax

Shuffle( <List> )

Returns list with same elements, but in random order.

Examples:

  • Shuffle({3, 5, 1, 7, 3}) yields for example \{5, 1, 3, 3, 7}.

  • Shuffle(Sequence(20)) gives the first 20 whole numbers in a random order.