var p = 6;

var whichImage = Math.ceil(Math.random()*p);

document.write('<img src="images/portrait'+whichImage+'.jpg">');

