Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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