Event.observe(window, 'load', randomImage);

function randomImage() {
	$$('.random').each(function(image) {
		image.src = root + "images/random/" + Math.round(18 * Math.random()) + '.jpg';
	});
}