Created
December 1, 2017 12:27
-
-
Save ejke/8c8dc94f50e13e57eb4e14a506184c03 to your computer and use it in GitHub Desktop.
Math random
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
// whole nr either 0,1,or 2 | |
Math.floor((Math.random() * (3-0))); | |
// whole nr either 1,2 or 3 | |
Math.floor((Math.random() * (3-0) + 1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment