# Random frame generator

**URL:** <https://forum.kirupa.com/t/random-frame-generator/294586>\
**Category:** flash\
**Created:** [August 17, 2009, 7:20am UTC](https://forum.kirupa.com/t/random-frame-generator/294586 "2009-08-17T07:20:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendonnelly](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@brendonnelly](https://forum.kirupa.com/u/brendonnelly)\
**Post date:** [August 17, 2009, 7:20am UTC](https://forum.kirupa.com/t/random-frame-generator/294586/1 "2009-08-17T07:20:45Z")

</div>

I want to make a button that makes you got to a random frame within a certain range (eg frame 41-50) when you press it. I have tried various codes but so far no luck. Im using AS 2  
and the button is within a couple of movie clips, but you can still click it when you test the movie any hel much appreciated.
