Last active
July 17, 2019 17:03
-
-
Save maburdi94/2c0d2f67c213708db40fba8f84e1e5cc to your computer and use it in GitHub Desktop.
Produce random number between two values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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