Shuffle a list of items
shuffle list , [ num noisily ]
Description
shuffle randomly sorts the specified items (words, numbers).
Options
num specifies that list be treated as numlist (see help numlist).
noisily displays the sorted list.
Examples
. set seed 23897
. shuffle a b c, noisily c a b
. shuffle 1/10, num noisily 7 8 4 9 2 5 6 1 10 3
. shuffle she said "my cat is black", noisily said "my cat is black" she
Saved Results
Macros:
r(list) shuffled list
Author
Ben Jann, ETH Zurich, jann@soz.gess.ethz.ch
Also see