Skip to content

Instantly share code, notes, and snippets.

@maburdi94
Last active July 17, 2019 17:03
Show Gist options
  • Save maburdi94/2c0d2f67c213708db40fba8f84e1e5cc to your computer and use it in GitHub Desktop.
Save maburdi94/2c0d2f67c213708db40fba8f84e1e5cc to your computer and use it in GitHub Desktop.
Produce random number between two values
function random(n, b = 0) {
return Math.random() * (b-n) + n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment