This page demonstrates and provides a script that plays a randomly selected background sound or music file when a page is opened or loaded.
The script can be put anywhere in the source code block. Between the <head> tags is a good spot for it. Change the sound files to your own relative or absolute urls. Any number of sound files will work, numbering them sequentially as shown: