Go to random frame

ok say i’m making a game, and when you press the start button, i want Flash to go to a random frame say frames 2-10 would a code like this work?\r\ron (release){\rgotoAndPlay (_currentframe+x)\r}\r\r\rand then in the timeline (frame1) have a code\r\rx=Math.random(10)\r\r

that code should work, have you tried it?

i haven’t tried it because my harddrive has nothing on it. I have to reinstall windows 98 and then upgrade the ***** to XP. then reinstall Flash and then I will try it. I was just making sure so I could get right to work wheni get my computer back.