Skip to content

Instantly share code, notes, and snippets.

@nitrotap
Created April 15, 2022 04:33
Show Gist options
  • Save nitrotap/520629004d768d9b85e83e1a71f66668 to your computer and use it in GitHub Desktop.
Save nitrotap/520629004d768d9b85e83e1a71f66668 to your computer and use it in GitHub Desktop.
random number generator
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