Created
October 31, 2013 09:31
-
-
Save apprentice1988/7246861 to your computer and use it in GitHub Desktop.
javascript 生成1-N之间的任意数字 ~~ floor 的功能
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
~~(Math.random() * N ) + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment