Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created July 2, 2016 13:09
Show Gist options
  • Save triacontane/5ddbf76e13329313bc6f286d0ff98d9a to your computer and use it in GitHub Desktop.
Save triacontane/5ddbf76e13329313bc6f286d0ff98d9a to your computer and use it in GitHub Desktop.
指定した変数値の範囲内の乱数を取得します
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