//Iris Tsing, Lab 4  



//return a random integer between 0 (lower boundary) and 9
//return Math.floor(lower + size*Math.random()

function randImg(){      return Math.floor(0 +  10 * Math.random());   }


//generate a filename of 0-9.jpg from images folder and prints it to the screen. 0-9 comes from the randImg() function above.

function writeImg(img) {
      document.write("<img src=\"images/", img,".jpg\">");
}