# Loading a Random MC with Conditions

**URL:** <https://forum.kirupa.com/t/loading-a-random-mc-with-conditions/201829>\
**Category:** flash\
**Created:** [September 25, 2006, 3:27pm UTC](https://forum.kirupa.com/t/loading-a-random-mc-with-conditions/201829 "2006-09-25T15:27:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maive](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Maive](https://forum.kirupa.com/u/Maive)\
**Post date:** [September 25, 2006, 3:27pm UTC](https://forum.kirupa.com/t/loading-a-random-mc-with-conditions/201829/1 "2006-09-25T15:27:22Z")

</div>

[FONT=“Times New Roman”][SIZE=“3”]Based on the [Loading Random Background](http://www.kirupa.com/developer/mx/loadingrandombackground2.htm) tutorial, which is very helpful, I would like to set some conditions on the generator making it a more advanced ActionScript. Does anyone know how to set the condition so that the same MC won’t be randomly generated twice? (For the record, I would have 10 random elements)

And secondly, which I can foresee is probably the harder bit, is there a way to regulate the randomizing to occur \*\*only \*\*every 24 hrs? That is, if I were to have this uploaded onto the web, it would randomly generate a SWF, keep that SWF/data generated for 24 hrs, then after 24 hrs the generator would reset the data and generate a new one to which it would keep displaying for another 24 hrs (and so on).[/SIZE][/FONT]
