grazie 1000 ho risolto cosi...

i++
if (i == 5) [
gotoAndStop (10)
] else [
a = random (9)
gotoAndStop (a)
]

grazie ancora...!!