Created
July 2, 2016 13:09
-
-
Save triacontane/5ddbf76e13329313bc6f286d0ff98d9a 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
var min = $gameVariables.value(1); | |
var max = $gameVariables.value(2); | |
$gameVariables.setValue(3, min + Math.randomInt(max - min + 1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment