//storeArray1 is my array created above this in the code. MovieClip(root) is used because
//I call this from inside a movie clip
var myNumber = Math.floor(Math.random()*MovieClip(root).storeArray1.length);
trace(“myNumber “+myNumber);
var activeCarton = MovieClip(root).storeArray1[myNumber];
//removes this element from array
MovieClip(root).storeArray1.splice(activeCarton,1);
//shows me which options are still in the array
trace (MovieClip(root).storeArray1);