ToRotate = 13;

// Specify the beginning and ending part of the image tag. 

BegFile = '<img src="images/pic';
EndFile = '.png" height="490" width="490">';

function printImage() {
var a = Math.ceil(Math.random() * ToRotate);
document.write(BegFile + a + EndFile);
}