
function create_random_array() {

    var random_array = new Array(4)

    for (i = 0; i < 4; i++) {

        random_array[i] = image_array.splice(Math.floor(Math.random() * image_array.length), 1);
    }

    return random_array;
}