Select the button or ther interactive area that you want to trigger the random sound.
Now, on the Interactivity panel on the right, add new action --> Run JavaScript
Click the added action, and then the "Edit JavaScript" in the panel below.
Enter your script in the window that opens.
Here's an example of a random sound JS:
var val = Math.floor(Math.random() * 5)
if (val === 0) {
$("#obj770")[0].play()
}
else if (val === 1) {
$("#obj772")[0].play()
}
else if (val === 2) {
$("#obj773")[0].play()
}
else if (val === 3) {
$("#obj774")[0].play()
}
else {
$("#obj775")[0].play()
}
How do you know the obj#, you ask? Easy: on the left of the JavaScript select Layers. You'll see all the objects in the page, with their object numbers. Simply use them instead of my examples.
That's it.