(This assumes that you have a SUN Sparc (sun4) with audio support and
the "play" program to play sounds. Don't ask me how this
works on other systems with sound support.)

Then copy this small program and compile
it for your system (a simple "cc -o random_select
random_select.c" should do the job). Install it somewhere in your
search path, e.g., in ~/bin. It performs the random selection
of sounds.