Filters

shuffle

Last updated: · Published:

Randomizes the order of an array.

Combine with first to get a random item

Input
{% assign myArray = 'one,two,three,four' | split: ',' -%}
{{ myArray | shuffle }}
Output
"two,four,three,one"

Copyright © 2025