Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> Between(min, max)

Description:

Compute a random integer between the min and max values, inclusive.

Parameters:

name type description
min number

The minimum value.

max number

The maximum value.

Returns:
Description:

The random integer.

Type:
  • number
Examples:
Since: 3.0.0
Source: src/math/Between.js (Line 7)