Created
May 3, 2017 06:48
-
-
Save BrianSipple/bc8ab51bee2133121ea0dac41884f8be to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const { floor, random } = Math; | |
function boundedRandom(min, max) { | |
const spread = max - min; | |
return min + floor(random() * spread); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment