Skip to content

Instantly share code, notes, and snippets.

@deanshub
Created June 6, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanshub/6275d66b0216e90844880b5d64f14d31 to your computer and use it in GitHub Desktop.
Save deanshub/6275d66b0216e90844880b5d64f14d31 to your computer and use it in GitHub Desktop.
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max))
}
module.exports = {
increase: function(value) {
return value + 1
},
random: function() {
return getRandomInt(100)
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment