Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Statistics[Shuffle] - apply random permutation to a data sample
Calling Sequence
Shuffle(X, options)
Parameters
X
-
data sample
options
(optional) equation of the form inplace = truefalse; indicates whether to change the argument
Description
The Shuffle command applies a random permutation to X.
The first parameter X is a data sample which must be given as a one-dimensional Array, a Vector, or a list.
An option or can be specified as a second argument. With , Shuffle will change X in place if it is an Array or a Vector; with , Shuffle will return a new (shuffled) copy of X. If X is a list, then Shuffle returns a new copy either way. The default is .
The option can be abbreviated to .
Notes
The Shuffle command accepts non-numeric data.
Examples
So far, itself has not changed. The inplace option changes this.
Note that the output of Maple's random number generator is reproducible after a restart. If this is undesirable, one can use the randomize command.
See Also
Statistics, Statistics[Computation], Statistics[OrderByRank], Statistics[Rank], Statistics[Sort]
Download Help Document