# Flash 8 - random array

**URL:** <https://forum.kirupa.com/t/flash-8-random-array/234723>\
**Category:** flash\
**Created:** [August 5, 2007, 8:59am UTC](https://forum.kirupa.com/t/flash-8-random-array/234723 "2007-08-05T08:59:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kekekiko](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kekekiko](https://forum.kirupa.com/u/kekekiko)\
**Post date:** [August 5, 2007, 8:59am UTC](https://forum.kirupa.com/t/flash-8-random-array/234723/1 "2007-08-05T08:59:47Z")

</div>

Hoping someone can help as there is probably an easy solution…:crazy:

I am trying to create a random question generator that will see each question only come up once. I would like the question to appear on a button press. I have a very simple button that does the random aspect at the mo. All questions are contained in a movieclip.

on (release) {  
//Movieclip GotoAndPlay Behavior  
this.gotoAndPlay(random(5));  
//End Behavior  
}

Is there something I can add to this code to make it so that each frame is only visited once or do I have to start again with arrays etc?

thanks
