Created
May 7, 2013 18:53
-
-
Save Tushkiz/5535116 to your computer and use it in GitHub Desktop.
Random Number Function
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 randomNumber(from, to) { | |
return Math.floor((Math.random()*(to - from + 1)) + from); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment