-
-
Save david-pm/ea3439c54475cc2335a1 to your computer and use it in GitHub Desktop.
Call random number between 0-max (JavaScript ES5)
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
var randNum = function(max) { | |
return Math.floor(Math.random() * max); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment