Skip to content

Instantly share code, notes, and snippets.

@webshru
Created February 24, 2019 17:59
Show Gist options
  • Save webshru/4e609e5283b133d5af3687ff43d336c6 to your computer and use it in GitHub Desktop.
Save webshru/4e609e5283b133d5af3687ff43d336c6 to your computer and use it in GitHub Desktop.
const getRandomNumber = (min, max) => {
return Math.round(min - 0.5 + Math.random() * (max - min + 1));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment