Difference between revisions of "Shuffle Command"

From GeoGebra Manual
Jump to: navigation, search
m
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|cas=true|statistics}}
 
{{command|cas=true|statistics}}
 
;Shuffle[ <List> ]
 
;Shuffle[ <List> ]

Revision as of 11:19, 29 July 2015



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