shuffle seq &key :copy :start :end :state | [Function] |
Returns a random reordering of seq, which can be either a list or vector of objects to shuffle. Reordering takes place between :start and :end, which default to the full length of the sequence. If seq is a list and :copy is t (the default) then a reordered copy of seq is returned, otherwise seq is destructively modified and returned.
Example:
? (shuffle '(a b c d e)) (B A E D C)