How to sort by newest through random items from an array?

Reposting my solution from another thread:

And a running example with nodes in this post: