I have a folder with a few files named
1.mp3, 2.mp3, 3.mp3, ...
Also, I have a command which accepts an mp3 file as an input:
blablabla -i mp3/1.mp3
I would like to pass to the command random mp3 file.
blablabla -i mp3/<random int in range 1-n>.mp3
blablabla -i mp3/<get random file from mp3 folder>
I am looking for the simplest method to do it, it doesn't matter which one. Who can help?