//
// Type the number of images you are rotating.

NumberOfImagesToRotate = 6;

// Specify the first and last part of the image tag.

FirstPart = '<img src="assets/images/web_pics/design';
LastPart = '.jpg" height="160" width="200">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}