Need Help with random sounds

k here is my problem,

I need to make a certain frame randomly go to scene and play a certain frame. I have searched for somethign of that sort for a long time with no luck, I guess i need an action
script to randomly pick a variable and depending on the variable it should

gotoandplay( “scene”, 2);

That way I could make the webpage constantly randomize sounds every 10 secs or so.

Please reply with any questions to what is it that i need, or with a solution, I will be more
than glad to help with what i can.