Actionscript:
-
myClip.gotoAndStop(int(Math.random() * myClip.totalFrames + 1));
An easy way to make a MovieClip go to a random frame. In the future I may post a demo of this technique.