How to display photos array in random way without repeating till first show

[font=verdana, arial, helvetica][size=2]Hi!
Could anybody help me please?
I´ve got a button and an empty movie clip. I´d like to show 4 photos in a random way but wihtout repeating it till all of them are shown first.

Code:
-On the first frame I have:
last_number=0

-On the button I have:
on (release) {
do {
indice=Math.Round(Math.random()*(10/3))
}
while(indice==last_number)
last_number=indice;
switch(indice){
case 0:
container.loadMovie(“img/sesion_5_3_0.jpg”);
break;
case 1:
container.loadMovie(“img/sesion_5_3_1.jpg”);
break;
case 2:
container.loadMovie(“img/sesion_5_3_2.jpg”);
break;
case 3:
container.loadMovie(“img/sesion_5_3_3.jpg”);
}

}[/size][/font]

I don´t know how to create an array and on every Random number you check if the new Random number is already in the array. If not, you put that value in the array. If it is already in the array…you generate a new Random number. When the array contains all numbers…you reset the array and start over again.