Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Shuffle Modifier

Shuffles a string or an array to make it all random.

string: Mr. Roboto was the original hipster.
array:
- Sonic
- Knuckles
- Tails
{{ string | shuffle }}
{{ array | shuffle }}
{{ Statamic::modify($string)->shuffle() }}
{{ Statamic::modify($array)->shuffle()->fetch() }}
string: a nhglRsws.oMtiotr hprriao eeo.b ti
array:
- Tails
- Knuckles
- Sonic