RANDOM , but not repeat?

Hi so im using the random function
It works fine however i was wondering if its possible to make it so that it does repeat until it goes throug the entire list?

For example:
“{{ ([
https://test.message1.webm’,
https://test.message2.webm’,
https://test.message3.webm’,
https://test.message4.webm’,
https://test.message5.webm
]|random) }}”

I would like it to choose randomly within the list (once) , but not to repeat any element until it completes the list

Thoughts on how to do this?

Hi there,
I’m looking for exactly the same functionality.
I’m casting a random playlist from youtube to my chromecast which works great but at times the same playlist item plays back. So frustrating!
Let me know if you could find a way to fo it.

Cheers