function random_images(random_images) {

var num_images = (random_images.length);
var num_choices = ((image_collection.length-1)/num_images);
var selected_images = new Array()
var result;
var current;

for(current = 1;current <= num_images; current++){
result = (Math.round((Math.random() * (num_choices-1)+1))+((current-1)*num_choices));
selected_images[current] = image_collection[result];
random_images[current-1].src = selected_images[current];

}
}