var max = 10;
var num = Math.floor((Math.random() * max))+1;
document.write("<img src='graphics/randompic/pic"+num.toString()+".jpg'></img>");