| Calling Sequence | Shuffle(t)
| |||||||||
| Parameters |
| |||||||||
| Return Type | type(t) | |||||||||
| Synopsis | Randomly permute the characters (when t is a string) or components (when t is a list or a structure). A new object is created and the argument is left unchanged. | |||||||||
| Examples | > Shuffle('abcdefghijklmnopqrstuvwxyz');
rgnfyzsaovqxuedcklwjhipmbt > Shuffle([1,2,3,4]); [1, 4, 2, 3] > Shuffle(ABC(a1,a2,a3,a4)); ABC(a4,a2,a3,a1) | |||||||||
| See also | CreateRandPermutation, CreateRandSeq, Mutate, Permutation | |||||||||