Generating then removing randomness in movieclip

Hi all,

I’ve created a movieclip for the homepage of a website. It is a series of images that are displayed in sequence.

However, I needed the movieclip to start at a random place when the page loads, so I used:

gotoAndPlay (random (1465));

on the 1st frame, which works fine. The problem is that once the movie reaches frame 1465 (the end) it jumps to a random frame again, instead of looping back to frame 1 as I would like.

How do I cancel the random frame function after its 1st use?

Cheers