Skip to content

Shuffle ​

Returns the items of an array in a random order.

Example ​

Data
json
{
  "sizes": [
    "S",
    "M",
    "L"
  ]
}
liquid
{{ sizes | shuffle | join: ', ' }}

Output

html
L, S, M