Unique random images from library

:hr:
i am displaying random pictures in a movie. each time the
user put the mcs into a cages a new movieclip will appears and that mc will be removed from array.
my problem is that at the moment 2 or more of the same movieclip
can appear on the screen again, once they have been entered into the cages.

how can I resolve this?

thanks kirupa members

code so far

23 images in the array.

picArray = new Array(“image1”, “image7”, “image8”, “image13”, “image15”, “image10”, “image20”, “image18”, “image17”, “image23”, “image22”, “image9”, “image3”, “image19”, “image21”, “image6”, “image24”, “image5”, “image12”, “image2”, “image25”, “image11”, “image14”);

for (i = 0 ; i <= picArray.length ; i++)
{
rdmNum = Math.floor(Math.random() * picArray.length);
this.blank.attachMovie(this.picArray[rdmNum], pic1, 0);
trace(i + " : " + rdmNum + " : " + picArray[rdmNum] + " ; " + picArray);
i = 0;
picArray.splice(rdmNum, 1);
}