Say I have files
foo-c.wav on disk.
I have a piece of software whose interface allows me to enter the name of a single sound file; every time a certain feature of that software is activated it loads that file and plays it.
I want to play a random sound every time this feature is activated.
Is there some feature of the Unix filesystem that will let a file access for
foo.wav return any of
foo-c.wav at random?