# Random frame

**URL:** https://forum.kirupa.com/t/random-frame/151407
**Category:** Uncategorized
**Created:** [June 15, 2005, 9:52am UTC](https://forum.kirupa.com/t/random-frame/151407 "2005-06-15T09:52:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bluebull114](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@Bluebull114](https://forum.kirupa.com/u/Bluebull114)
#### Post date: [June 15, 2005, 9:52am UTC](https://forum.kirupa.com/t/random-frame/151407/1 "2005-06-15T09:52:35Z")

</div>

Hello everybody.  
I have a little problem. I would like to create a completely randomly dancing robot, but i don’t know how to program it to jump randomly on the timeline.

What i mean is something like that:

Math.random “blablabla”  
If random chosen number is 1 GotoAndPlay(5)  
If random chosen number is 2 GotoAndPlay(12)  
If random chosen number is 3 GotoAndPlay(24)  
and so on…

Hope you understand what i mean. 🙂  
thanks.
