# Two ARRAY questions

**URL:** <https://forum.kirupa.com/t/two-array-questions/240302>\
**Category:** flash\
**Created:** [October 1, 2007, 8:59pm UTC](https://forum.kirupa.com/t/two-array-questions/240302 "2007-10-01T20:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [October 1, 2007, 8:59pm UTC](https://forum.kirupa.com/t/two-array-questions/240302/1 "2007-10-01T20:59:45Z")

</div>

Hey guys I have a random image generator and I would like to add more user interaction to it. The way it works is that every 10 seconds a new image is randomly selected and displayed.

Question #1  
  How do I make it so that every number that has been generated is appended to an Array?

Question #2  
  How do I check to make sure that the image being loaded is not already in that Array?

Thanks all!
