shuffle Lshuffle(L, n)
|
Mutable lists are shuffled in place.
|
|
Is n is given, then a shuffled random sublist of length n is returned. Contrast this with randomSubset, which preserves the order.
|
Currently, random has this behavior when given a list. However, in the near future, this will change to the behavior of randomElement.
|
The object shuffle is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/shuffle-doc.m2:43:0.