shuffle
Randomly reorganizes the placement of objects in an array.
Copy
shuffle(<array>)
Use Case: You want to randomize the order in which users receive their content, not necessarily giving them in a sorted order. Rather, you want to find their top items and then randomize the placement.
Zephyr: In the Setup:
{content = personalize({"algorithm":"popular","size":10})}
{contentTruffleShuffle = shuffle(content)}
If you need more granular control over the content being randomized, you might want to use the ‘random’ algorithm from the personalize() function.