How does Heroes of Might & Magic 3 choose which music to play at the beginning of a battle?

There are eight different short audio clips played at the beginning of every battle in HoMM III. The corresponding file names are battle0{0..7}.wav (contained in one of the .snd archives).

How does the game choose which one to play: is it random, or does it depend on the battle terrain / other factors?


Solution 1:

It's completely random from what I remember.