Last active
March 13, 2016 19:10
-
-
Save diem1/41f30a39af308ce1518a to your computer and use it in GitHub Desktop.
JS Random Number
This file contains hidden or 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
n = Math.floor(Math.random() * 10 + 1) | |
console.log n |
This file contains hidden or 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
var n = Math.floor((Math.random() * 10) + 1); | |
console.log(n); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment