Created
April 15, 2022 04:33
-
-
Save nitrotap/520629004d768d9b85e83e1a71f66668 to your computer and use it in GitHub Desktop.
random number generator
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 randomNum = function (min, max) { var a = Math.floor(Math.random() * (max - min + 1) + min); return a;}; | |
module.exports = {randomNum}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment