mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
872 B
872 B
title | description | date | publishdate | lastmod | keywords | categories | menu | signature | workson | hugoversion | relatedfuncs | deprecated | draft | aliases | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shuffle | Returns a random permutation of a given array or slice. | 2017-02-01 | 2017-02-01 | 2017-04-30 |
|
|
|
|
|
false | false |
{{< 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 >}}