We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622978f commit 7836f3aCopy full SHA for 7836f3a
1 file changed
src/math/RandomDataGenerator.js
@@ -178,6 +178,21 @@ Phaser.RandomDataGenerator.prototype = {
178
179
},
180
181
+ /**
182
+ * Returns a random integer between and including min and max.
183
+ * This method is an alias for RandomDataGenerator.integerInRange.
184
+ *
185
+ * @method Phaser.RandomDataGenerator#between
186
+ * @param {number} min - The minimum value in the range.
187
+ * @param {number} max - The maximum value in the range.
188
+ * @return {number} A random number between min and max.
189
+ */
190
+ between: function (min, max) {
191
+
192
+ return this.integerInRange(min, max);
193
194
+ },
195
196
/**
197
* Returns a random real number between min and max.
198
*
0 commit comments