# GotoAndPlay random frame

**URL:** <https://forum.kirupa.com/t/gotoandplay-random-frame/319114>\
**Category:** flash\
**Created:** [February 9, 2011, 10:10am UTC](https://forum.kirupa.com/t/gotoandplay-random-frame/319114 "2011-02-09T10:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eurogibbon](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@eurogibbon](https://forum.kirupa.com/u/eurogibbon)\
**Post date:** [February 9, 2011, 10:10am UTC](https://forum.kirupa.com/t/gotoandplay-random-frame/319114/1 "2011-02-09T10:10:29Z")

</div>

Hi All,

This is a simple problem I’m sure, but complicated for me!

I want my movie, on loading, to start playing from a random frame. I know that in AS2 the code would be

```auto
gotoAndPlay (random (1825));

```

but I’m using AS3 and I can’t figure out how to achieve the same thing here.

Can someone help please?
