I made a little video about this script I wrote:
This program gets a random file from your current directory if you do not specify one; it gets a random file from the specified directory if you give it one like so:
# rfi /etc/wireguard
Which is very useful if you want to start a random VPN configuration :)
The code, comments, etc. are on the Github.