Yes, you can. In example, in my WIP, I have random thunder claps. I wrote the following code to do so
// weather effects(sound)
for thunder =1 to rnd(50)+1
if sound playing(6) =0 and thunder =25
play sound 6
if sound playing(7) =0 and thunder =50
play sound 7
endif
endif
next thunder
Sounds 6 & 7 are two different thunder claps at random. So, you could load 1 scream, 1 chain clank and more if need be and add more if desired by doing something like
// Dungeon Sound Effects
for dungeonSounds =1 to rnd(75)+1
if sound playing(1) =0 and dungeonSounds =25
play sound 1
if sound playing(2) =0 and dungeonSounds =50
play sound 2
if sound playing(3) =0 and dungeonSounds =75
play sound 3
endif
endif
endif
next dungeonSounds
where sound 1,2 & 3 are 3 different sounds and so on
Know what? while we're at it,lets give your player a foot fall sound. That is, lets hear your player walking the dungeon. For this,in my wip,I use the code
// walk(sound)
if upkey()=1 or downkey()=1 or leftkey()=1 or rightkey()=1
if sound playing(1)=0
play sound 1
endif
else
stop sound 1
endif
What this does,is loop a footfall sound as long as one of the arrow keys(used to move my character) is being pressed.
Give it a try.