Static Private _randomThe primary function to be called when generating any random numbers. Set to Math.random by default.
Static randomThe primary function to be called when
generating any random numbers.
Set to Math.random
by default.
Static randomThe minimum number that can be returned from this function (inclusive).
The maximum number that can be returned from the function (non-inclusive).
A random floating point value greater than or equal to min and less than max.
Static randomStatic randomThe minimum number that can be returned from this function (inclusive).
The maximum number that can be returned from the function (non-inclusive).
A random integer value greater than or equal to min and less than max.
Static randomStatic randomStatic randomThe list of elements to be selected from.
A random element from the given list.
This method assumes an equal distribution for all elements of the list.
If an empty list is provided, the function will return undefined.
Static randomThe list of elements to be selected from.
IMPORTANT: The sum of weights of the objects in this list should be equal to
1.0.
A random element from the given list.
The distribution of the choices will be determined by the weights of each
element in the list.
If an empty list is provided, the function will return undefined.
If the sum of weights in the list is less than 1.0, the function will return undefined.
A collection of static methods for retrieving random values.