okay, so when i press my mc (random1) i would like it to go to a random frame (but only random between frames2, 18, and 24) for different maps in my game.

This is the formula i have right now but it doesnt work, (the formula works to go to any frame tho with a frame number where () is and not (math.random) and not sure if i was supposed to put something else besides math.random

I've also tried other things like ((random (2)) , (random (18)), (random (24)))

and also (random ( 2, 18, 24)) and none of them seem to work =/

any help would be greatly appreciated!

thanks, Andrew

ActionScript Code:

this.random1.onRelease = function(){
gotoAndStop(math.random( 2, 18, 24 ));// want it to choose a random frame of 2, 18 or 24
}