Set <p> value to random number

<script>
document.getElementById("test").innerHTML = Math.random() * (1000 - 9999);
</script>
<p id="test"></p>

My code isn’t working

Nevermind fixed it

1 Like