# Auto numbering movieclips inside arrays

**URL:** <https://forum.kirupa.com/t/auto-numbering-movieclips-inside-arrays/326869>\
**Category:** Uncategorized\
**Created:** [January 17, 2012, 8:58pm UTC](https://forum.kirupa.com/t/auto-numbering-movieclips-inside-arrays/326869 "2012-01-17T20:58:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antsuperhack](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)\
**Post date:** [January 17, 2012, 8:58pm UTC](https://forum.kirupa.com/t/auto-numbering-movieclips-inside-arrays/326869/1 "2012-01-17T20:58:02Z")

</div>

Hey all,

I’ve created a game of top trumps.

64 cards and randomized and the 30 are selected.

The 30 are then split between 2 arrays, one called PlayerCards and the other called AICards

Only problem is that the cards don’t play in any order and often the same card is played 2-3 times in a row.

I want to number the random cards in each the PlayersCards and AIsCards 0-14.

So my question is how do I number the 15 cards in both the PlayerCards and AICards arrays?

Thanks in advance.
