hugo/docs/content/en/functions/collections/Shuffle.md
2023-12-04 15:24:01 +01:00

516 B

title description categories keywords action related aliases
collections.Shuffle Returns a random permutation of a given array or slice.
aliases returnType signatures
shuffle
any
collections.Shuffle COLLECTION
collections.Reverse
collections.Shuffle
collections.Sort
collections.Uniq
/functions/shuffle
{{ shuffle (seq 1 2 3) }} → [3 1 2] 
{{ shuffle (slice "a" "b" "c") }} → [b a c] 

The result will vary from one build to the next.