# Random MovieClip play, AS3?

**URL:** <https://forum.kirupa.com/t/random-movieclip-play-as3/315590>\
**Category:** flash\
**Created:** [October 29, 2010, 5:23pm UTC](https://forum.kirupa.com/t/random-movieclip-play-as3/315590 "2010-10-29T17:23:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Post date:** [October 29, 2010, 5:23pm UTC](https://forum.kirupa.com/t/random-movieclip-play-as3/315590/1 "2010-10-29T17:23:21Z")

</div>

Hello all. I have 16 instances of one movie clip on the stage and each one has their own unique instance name. The movie clips have a nested animation and I want each clip to play randomly. I’m familiar with the Math.random class, but not for animating clips. Here is what I have so far:

```auto

var turkeyArray:Array = new Array();

turkeyArray[0] = turkey1_mc;
turkeyArray[1] = turkey2_mc;
turkeyArray[2] = turkey3_mc;
turkeyArray[3] = turkey4_mc;
turkeyArray[4] = turkey5_mc;
turkeyArray[5] = turkey6_mc;
turkeyArray[6] = turkey7_mc;
turkeyArray[7] = turkey8_mc;
turkeyArray[8] = turkey9_mc;
turkeyArray[9] = turkey10_mc;
turkeyArray[10] = turkey11_mc;
turkeyArray[11] = turkey12_mc;
turkeyArray[12] = turkey13_mc;
turkeyArray[13] = turkey14_mc;
turkeyArray[14] = turkey15_mc;
turkeyArray[15] = turkey16_mc;

var i:Number = 0;

for(i=0; i<turkeyArray*.length; i++)
{
    WHAT GOES IN HERE TO PLAY EACH INSTANCE RANDOMLY?
}

```

Thanks!

Jesse
