Random Frame

I need a code that makes flash “gotoAndStop” on a random frame between (1-10) Don’t exclude frame one.

Btw its not in a code for a button or movieclip.