A simple .NET core CLI program that simply scans all files in a target directory and opens a random file with it's registered file handler.
dotnet build . --configuration Release
randomFilePicker /path/to/files "<pattern>.ext"
randomFilePicker /mount/dir/media "*.txt"
randomFilePicker /home/myfiles/videos "this*.mp4"