function getRandom(max) { return Math.round((max - 1) * Math.random()) } function start(){ // document.close(); } start();