Skip to content

Instantly share code, notes, and snippets.

@johnloy
Created September 22, 2021 16:43
Show Gist options
  • Save johnloy/0b36a15d76b39a5f712befbeddbceb5f to your computer and use it in GitHub Desktop.
Save johnloy/0b36a15d76b39a5f712befbeddbceb5f to your computer and use it in GitHub Desktop.
function getRandomInteger(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