I have this random-code that make the player jump do 6 different frames in the movie.

unction randNum(nMin, nMax) {
return Math.round(Math.random() * (nMax - nMin)) + nMin;
}
/////
pil2.onRelease = function(){
s=new Sound();
s.attachSound("knack");
s.start();
_root.gotoAndStop("go" + randNum(1, 6));

How can I write a code so that when I have been on the go2 frame don´t go there anymore?

/Mattias