// JavaScript Document

//The array which is going to hold the image information. Store the image info along with their correct path; I've omitted the path here as I've stored the images in the same folder where my web page resides.
var quoteArray = new Array();

quoteArray[0] = "It&acute;s held together by a zip tie and faith"; //You can replace these image file names with your own image names.
quoteArray[1] = "derp";
quoteArray[2] = "derp";
quoteArray[3] = "derp";
function doIt()
{
var rand = Math.floor(Math.random()*4); //Generating a random number between 0 and 3 here in your case you can replace 4 with 11 if you have 10 images

var qresult = "&quot;"+quoteArray[rand]+"&quot;";

document.getElementById("quote").innerHTML = qresult;

}