Prueba


document.getElementById("demo").innerHTML = Math.floor((Math.random() * 10) + 1);