Open random file in directory on ubuntu

 

find . -type f | shuf -n 1 | xargs -d "\n" xdg-open

Opens random file in current directory with default program, it traverses directories recursively