hugo/content/en/functions/collections/Shuffle.md
Bjørn Erik Pedersen 9b0050e9aa Squashed 'docs/' content from commit 5c085a37b
git-subtree-dir: docs
git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
2024-01-27 10:48:33 +01:00

530 B

title description categories keywords action aliases
collections.Shuffle Returns a random permutation of a given array or slice.
aliases related returnType signatures
shuffle
functions/collections/Reverse
functions/collections/Sort
functions/collections/Uniq
any
collections.Shuffle COLLECTION
/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.