Skip to content

Instantly share code, notes, and snippets.

@diem1
Last active March 13, 2016 19:10
Show Gist options
  • Save diem1/41f30a39af308ce1518a to your computer and use it in GitHub Desktop.
Save diem1/41f30a39af308ce1518a to your computer and use it in GitHub Desktop.
JS Random Number
n = Math.floor(Math.random() * 10 + 1)
console.log n
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