Random Music Track on Load

I'm porting a game to PC, Mac and iOS, and it contains a scene that plays one of three music tracks. Is there a way I can use a script to chose a random track, preferably in JavaScript?

Make an array of sounds, and use the random number generator to pick a number, and then that'll select one of the tracks, and you just play that. =).