Skip to content

Instantly share code, notes, and snippets.

@miladvafaeifard
Created June 27, 2022 21:09
Show Gist options
  • Save miladvafaeifard/41e07d97cf9951960c0c6229ad712d22 to your computer and use it in GitHub Desktop.
Save miladvafaeifard/41e07d97cf9951960c0c6229ad712d22 to your computer and use it in GitHub Desktop.
Generator a random in between min and max
function generateRandomNumber(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