function getRandom(max) { return Math.round((max) * Math.random()); } function ArrayOfImages(){ this.img=new Array(); for(i=2;i