Skip to content

Instantly share code, notes, and snippets.

@jeangontijo
Created June 17, 2020 17:52
Show Gist options
  • Save jeangontijo/2447078cd22c0e4e7683bca4e4019df7 to your computer and use it in GitHub Desktop.
Save jeangontijo/2447078cd22c0e4e7683bca4e4019df7 to your computer and use it in GitHub Desktop.
function rand(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment