var n = Math.floor((Math.random() * 10) + 1); console.log(n);