var n = Math.floor(Math.random()*8) ;
document.write("<BODY background='http://www.eurasia.city.yokohama.jp/img_header/bgimg"+n+".jpg'>");


/*
1)　var n = Math.floor(Math.random()*4) ;
　Math.random()　は0と1の間の乱数を発生させる関数です。
　Math.floor(Math.random()*4)は0,1,2,3の整数の乱数を発生させます。
2)　document.write("<BODY bgcolor='#000000' background='img/bgimg"+n+".jpg'>");
　background='img/bgimg"+n+".jpg'の部分は、たとえば画像名bgimg0.jpgの0を乱数に置き換えています。
　document.write()によってタグを直接書き出しています。

*/
