Shuffle Command

From GeoGebra Manual
Revision as of 21:24, 9 March 2013 by Zbynek (talk | contribs) (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Jump to: navigation, search



Shuffle[ <List L> ]
Returns list with same elements as L, but in random order.
Note: You can recompute the list via Recompute all objects in View Menu (or pressing F9).

See also RandomElement Command and RandomBetween Command.

CAS Syntax

Shuffle[ <List L> ]
Returns list with same elements as L, 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.
© 2024 International GeoGebra Institute