Class: Range

Range(min, max)

Define a range which a value could take.

Constructor

new Range(min, max)

Create a new Range.

Parameters:
Name Type Description
min number

The minimum value.

max number

The maximum value.

Source:

Methods

rand() → {number}

Return a random value, evenly distributed, from the range.

Source:
Returns:
Type
number