Created
April 27, 2018 07:57
-
-
Save arrbxr/181a57abbdb66ad72115e65e03feff1e to your computer and use it in GitHub Desktop.
Generate Random Whole Numbers within a Range created by arrbxr - https://repl.it/@arrbxr/Generate-Random-Whole-Numbers-within-a-Range
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
| function randomFromRange(myMin, myMax){ | |
| return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin; | |
| } | |
| randomFromRange(12,152); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment