Use Audio play ""&int(random(1,7))
You'd want int(random(1,8)) or 7 won't get picked, as int just lops off the fraction.
Develop games in your browser. Powerful, performant & highly capable.
Thank you for helping but I think I messed up I tried to add &int(random(min,max)) but Its not playing audios.
It's not clear what you are trying to do. You can't concatenate the song index and the random value. It's one or the other.
by pressing the sprite ... it will randomly play an audio under the specific sound folder A=NO , B=YES
str(choose(1,2,3,4))
and
str(choose(5,6,7)) or if you prefer an offset, str(4+choose(1,2,3))
OR
str(int(random(1,5)) and str(5+int(random(3))
thank you blackhornet and everyone for the help