Click the button to display a random number between 1 and 10.
<script>
function myFunction() {
var x = Math.floor((Math.random() * 10) + 1);
document.getElementById("demo").innerHTML = x;
}
</script>
Konu: Random Sayı Acil!!
Click the button to display a random number between 1 and 10.