#TIL that #shuf lets you shuffle input into a random order. Picking a random image from a directory is as easy as:
ls *.jpg | shuf -n 1
...and of course you can jumble up your text files with cat|shuf if you like! 🎲