Module: sources/cores/numbers

Export the utilities methods about numbers
Author:
License:
Source:

Methods


<static> getRandomFloatExclusive(min, max)

Returns a random number between min (inclusive) and max (exclusive)
Parameters:
Name Type Description
min number
max number
Source:
Returns:
Type
number

<static> getRandomFloatInclusive(min, max)

Returns a random number between min (inclusive) and max (exclusive)
Parameters:
Name Type Description
min number
max number
Source:
Returns:
Type
number

<static> getRandomIntExclusive(min, max)

Returns a random integer between min (inclusive) and max (exclusive) Using Math.round() will give you a non-uniform distribution!
Parameters:
Name Type Description
min number
max number
Source:
Returns:
Type
number

<static> getRandomIntInclusive(min, max)

Returns a random integer between min (inclusive) and max (inclusive) Using Math.round() will give you a non-uniform distribution!
Parameters:
Name Type Description
min number
max number
Source:
Returns:
Type
number

<static> numberToPlainString(value)

Convert a number to its literral form
Parameters:
Name Type Description
value number
Source:
Returns:
Type
string