It sounds like:
AudioEngine.GetSoundByIndex(Random(TotalSounds)).P lay;

Did you already patended it?