﻿
function rand ( n ){
	return ( Math.floor ( Math.random ( ) * n + 1 ) );
}

function generateRandomImage(max){
	var filePath = "/images/homepage/homepage-" + rand(max) + ".jpg"
	document.getElementById('home-main-image').src = filePath
}

generateRandomImage(8);