Constructor
new Range(min, max)
Create a new Range.
Parameters:
Name | Type | Description |
---|---|---|
min |
number | The minimum value. |
max |
number | The maximum value. |
Methods
rand() → {number}
Return a random value, evenly distributed, from the range.
Returns:
- Type
- number