Does it matter when the sounds / music are triggered? or is the idea to have it select a random sound & play at random intervals?
You can actually link values in Visionaire Studio to the pause action part which means if you use the set random value action part on a value that is linked to a pause action part that you can then use it to generate a dynamic delay time. I often employ that method for many things I do, as I'm a big fan of dynamic content.
Quick note: I believe there is also an action part which can be used to pause the action list by making it wait until a linked sound has stopped playing so in effect you could create a dynamic loop like so... (action parts)
set random value 'delay_music' between 5000 and 120000 -- would create random value between 5 seconds & 120 seconds (I used milliseconds)
set random value 'select_music' between 1 and 3
pause for 'delay_music' milliseconds
if value 'select_music' is 1
play sound 'music_1'
wait until sound 'music_1' is finished
jump to action part #1
end if
if value 'select_music' is 2
play sound 'music_2'
wait until sound 'music_2' is finished
jump to action part #1
end if
if value 'select_music' is 3
play sound 'music_3'
wait until sound 'music_3' is finished
jump to action part #1
end if
...I'm sure you get the idea? What I've done above is create a loop that automatically generates a random pause time & then randomly picks which audio file to play, which is then started by running an if query to see which value was generated. From there it waits until that sound is finished & then it loops back to the beginning of the action.
The problem with using sounds is that they won't continue over into the next scene if the scene changes while a sound is playing. The problem with assigning an audio file as the background music is that it will loop indefinitely. The sounds method could also be recreated using Lua script, but you would have to use some other method of when to trigger new sounds as there's no wait until sound ends function for Lua script other than checking the current playtime of a playing sound against it's final playtime or checking if its id exists in the sound table.
P.S: sorry for my large replies. I tend to ramble a little bit, as it's hard to try to explain things in detail in only a few short sentences.