Created
October 16, 2014 03:14
-
-
Save chikoski/0f907f0c83a7d1d408b5 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
| var createNumber = function(n){ | |
| var tmp = Math.random() * n; | |
| var result = Math.floor(tmp); | |
| return result; | |
| }; | |
| createNumber(100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment