shuffle
Table of contents
Randomizes the order of an array.
Combine with first to get a random item
{% assign myArray = 'one,two,three,four' | split: ',' -%}
{{ myArray | shuffle }}
"two,four,three,one"
Randomizes the order of an array.
Combine with first to get a random item
{% assign myArray = 'one,two,three,four' | split: ',' -%}
{{ myArray | shuffle }}
"two,four,three,one"