-
-
Save hristiank/36e98366fa06285a79b656ce6b351f5e to your computer and use it in GitHub Desktop.
Insert a random number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var randomNum = ''; | |
randomNum += Math.round(Math.random() * (100000 - 10000) + 10000); | |
var elem = document.getElementById("random_number").value = randomNum; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment