Created
June 5, 2019 15:06
-
-
Save Subilan/749633ab49305ec6be84a531621f4d93 to your computer and use it in GitHub Desktop.
JavaScript 范围随机数生成
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
const randomInt = (min, max) => Math.floor(Math.random() * (max - min) + min); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment