mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 18:14:43 -04:00
728 B
728 B
title | description | keywords | categories | menu | signature | relatedfuncs | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shuffle | Returns a random permutation of a given array or slice. |
|
|
|
|
|
{{< code file="shuffle-input.html" >}}
{{ shuffle (seq 1 5) }}
{{ shuffle (slice "foo" "bar" "buzz") }}
{{< /code >}}
This example would return the following:
{{< output file="shuffle-output.html" >}}
2 5 3 1 4
buzz foo bar
{{< /output >}}