// Type the number of images you are rotating.

NumberOfImagesToRotateTall = 16;
NumberOfImagesToRotateWide = 38;

// Specify the first and last part of the image tag. 

FirstPartTall = '<img src="../Images/Jan\'s work/Tall/IMG (';
LastPartTall = ').jpg" height="200" width="150" class="rounding">';

FirstPartWide = '<img src="../Images/Jan\'s work/Wide/IMG (';
LastPartWide = ').jpg" height="150" width="200" class="rounding">'

function printImageTall() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotateTall);
document.write(FirstPartTall + r + LastPartTall);
}

function printImageWide() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotateWide);
document.write(FirstPartWide + r + LastPartWide);
}