Randomizing sounds
To add more variety and authenticity to the ambiences, you can combine the AmbientVolume entity, used in the first example of this chapter, with an entity called RandomSoundVolume. Using this entity, a one-shot sound event can be randomly fired off at a particular 3D position or within a given area.