Created
March 5, 2018 17:22
-
-
Save juniorknx/73f8db104508dff1bdfdce3f159af7f9 to your computer and use it in GitHub Desktop.
RANDOM CODE
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math</h2> | |
<p>Math.floor(Math.random() * 10) returns a random integer between 0 and 9 (both included).</p> | |
<p id="demo"></p> | |
<script> | |
document.getElementById("demo").innerHTML = | |
Math.floor(Math.random() * 10); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment