Random Express Entries

Hello community, I have a question/project for extending express list block. There’s no option to randomize express list order, not that surprising, but what if I wanted an option like that? I’m working on a site using express where that is desired. I imagine this is within custom template territory. Any pointers?

You could use the php shuffle on the array before you output?

Thanks man! I was able to make it work with the following in the custom template. I added the counter so I could specify ‘100’ for number of items in the block config and then limit to ‘3’ in the programming.

$result_array = $result->getItems();
foreach ($result_array as $item) {
if($i<3) {

That looks great you could even try

foreach(array_slice($result_array, 0, 3) as $item ):