Javascript Math
From Yate Documentation
Math global functions.
Static methods
- abs(value)
Return the absolute value of an integer.
Return 0 if 'value' is not an integer.
- max(value1 [, value2 [, ...]])
Return the largest value in parameters.
Return NaN if the parameters list contains only non integer values.
Non integer values are ignored.
- min(value1 [, value2 [, ...]])
Return the smallest value in parameters.
Return the largest integer value if the parameters list contains only non integer values.
Non integer values are ignored.
- random([min [, max]])
Retrieve a random number.
Function call fails if min < 0 or max < 0 or min >= max.
Parameters:
min: Minimum value (interval lower bound). Defaults to 0
max: Maximum value (interval upper bound). Defaults to largest integer value
Return:
A random integer value in interval [min .. max).