# Random load no repeat

**URL:** <https://forum.kirupa.com/t/random-load-no-repeat/324668>\
**Category:** Uncategorized\
**Created:** [September 2, 2011, 5:11am UTC](https://forum.kirupa.com/t/random-load-no-repeat/324668 "2011-09-02T05:11:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![n8\_](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@n8\_](https://forum.kirupa.com/u/n8_)\
**Post date:** [September 2, 2011, 5:11am UTC](https://forum.kirupa.com/t/random-load-no-repeat/324668/1 "2011-09-02T05:11:55Z")

</div>

i am using this

filename = new Array(“1\_e.swf”,  
“2\_e.swf”, “3\_e.swf”, “4\_e.swf”, “5\_e.swf”, “6\_e.swf”, “7\_e.swf”, “8\_e.swf”,  
“9\_e.swf”, “10\_e.swf”, “11\_e.swf”, “12\_e.swf”, “13\_e.swf”, “14\_e.swf”,  
“15\_e.swf”, “16\_e.swf”, “17\_e.swf”, “18\_e.swf”);  
i =  
filename.length;  
k = Math.floor(Math.random() \* i);  
loadMovie(filename[k], qtext);

i need it to not ever repeat loading one of the movies.

i beleave it can be done by getting the  
current movie from the array and then removing it from the array? but i can not figure out  
how to do this :h:

thanks
