It works!
Thank you very much! Well, I hope that I won't have any problems with modifying this function later.
Edit:
Well I have some problems, I want "a" to be random number between 6 and 9, but when I change int a=6; to int a=6 + Random(3); error "audio clip aSound9 not found" is displayed. Of course, I have files named Sound9, Sound 10 and so...
Edit no.2:
Oooh, its this new object-oriented audio, nevermind.

Edit:
Well I have some problems, I want "a" to be random number between 6 and 9, but when I change int a=6; to int a=6 + Random(3); error "audio clip aSound9 not found" is displayed. Of course, I have files named Sound9, Sound 10 and so...
Edit no.2:
Oooh, its this new object-oriented audio, nevermind.