Skip to content

Instantly share code, notes, and snippets.

@tomhat
Created October 8, 2019 01:39
Show Gist options
  • Save tomhat/2c387fe0bd24316a448d617bd5c4f829 to your computer and use it in GitHub Desktop.
Save tomhat/2c387fe0bd24316a448d617bd5c4f829 to your computer and use it in GitHub Desktop.
範囲指定の乱数取得
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