Members
(static) HALF_PI
Returns PI / 2
- Source:
(static) QUARTER_PI
Returns PI / 4
- Source:
(static) TWO_PI
Returns PI * 2
- Source:
Methods
(static) randomBetween(min, max) → {int|float}
Returns a number between min and max
Parameters:
Name | Type | Description |
---|---|---|
min |
int | The minimum range |
max |
int | The maximum range |
- Source:
Returns:
A random number between min and max
- Type
- int | float
(static) randomFrom(object) → {*}
Returns a random element in an array or object
Parameters:
Name | Type | Description |
---|---|---|
object |
array | object | The array or object |
- Source:
Returns:
The array item or object value
- Type
- *