var randnum = Math.random();
var inum = 2;// Change this number to the number of images you are using.
var rand1 = Math.round(randnum * (inum-1)) + 1;
images = new Array
images[1] = "images/home_image/1.jpg"
images[2] = "images/home_image/2.jpg"

// Ensure you have an array item for every image you are using.
var image = images[rand1]
