function getRandomNum(lbound, ubound) {
document.write (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}

getRandomNum(1,9);
