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

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.