avrei bisogno di saltare ad un frame casuale della timeline, per incrementi di 30 (frame 30, oppure 60, oppure 90, e così via...)

ho provato a cercare sul web, ma non riesco a trovare uno script che funzioni (uso Flash 8)

tipo questo:

codice:
on (release){
what_number = Number(random(10))+1;
gotoAndStop(_root.what_number);
}
o questo:

codice:
function randRange(min:Number, max:Number):Number {
   var randomNum:Number = Math.round(Math.random()*(max-min))+min;
   return randomNum;
 }
 on (release) {
     var say;
 say = randRange(2,5);
 gotoAndStop(say);
 }
a parte il fatto che a me servirebbe in uscita da un frame e non sul release di un bottone (ma fin qui dovrei arrivarci ^^)