Created
October 8, 2019 01:39
-
-
Save tomhat/2c387fe0bd24316a448d617bd5c4f829 to your computer and use it in GitHub Desktop.
範囲指定の乱数取得
This file contains 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 getRandomInt(min, max){ | |
return Math.floor(Math.random() * (max - min + 1)) + min | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment