shuffle Twig Filter

The shuffle filter randomizes the order of elements in an array and returns the result.

The new array will have different array keys. The existing keys are removed and new ones are assigned while randomizing the values of the array.

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{% set newValue = value|shuffle %}
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv