Random Picture Loading

Hi All,

Got a slight problem and I’m pulling my hair out…

I have a page that shows 2 random pictures pulled from a image directory that has 5 images.

I got the random bit from somewhere but can’t get the pictures to load simultaneously. Can someone tell me where I’m going wrong?

pictures_array = [1, 2, 3, 4, 5];
Array.prototype.pickRandomValues = function(n) {
	var selected = [];
	for (var i = 0; i<n; ++i) {
		var r = Math.floor(Math.random()*this.length);
		this.splice(r, 1);
	return selected;
loadMovie("img/"+pictures_array.pickRandomValues(1)+".jpg", "container_mc");
loadMovie("img/"+pictures_array.pickRandomValues(1)+".jpg", "container_mc copy");