$files->shuffle()
Shuffle all elements
$files->shuffle(): Kirby\Toolkit\Collection
Return type
Example
<ul>
<?php foreach($page->files()->shuffle() as $file): ?>
<li>
<a href="<?= $file->url() ?>">
<?= html($file->filename()) ?>
</a>
</li>
<?php endforeach ?>
</ul>
Inherited from
Kirby\Toolkit\Collection