Created
July 16, 2016 20:52
-
-
Save YurePereira/e49c1b696f2223154082391101469fe1 to your computer and use it in GitHub Desktop.
Ramdom Number Generator
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
| /** | |
| * Number Generator JavaScript | |
| * | |
| * @param min {Integer} Number start | |
| * @param max {Integer] Number finish | |
| * | |
| * @return {Integer} | |
| * | |
| */ | |
| function randomNumber(min, max) { | |
| return Math.floor(((max + 1) - min) * Math.random() + min); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment