Last active
July 16, 2017 20:40
-
-
Save jamesliu96/51d6b239355273d8e6ea to your computer and use it in GitHub Desktop.
Simple dice
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
function dice(n) { var d = []; while(n > 0) { d.push(Math.ceil(6 * Math.random())); n--; } return d.sort(); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment