Class: Math

$wk$. Math

new Math()

Source:

Methods

<static> randomInt(p_interval)

Computes a random integer number within an interval.
Parameters:
Name Type Description
p_interval Number | Object
Source:
Returns:
An integer number within the interval [p_interval.min, p_interval.max].

<static> randomNum(p_interval)

Computes a random number within an interval.
Parameters:
Name Type Description
p_interval Number | Object
Source:
Returns:
A number within the interval [p_interval.min, p_interval.max].

<static> value(p_value, p_pos)

Returns a value. If only a value p_value is passed that value is returned. If, on the other hand, an array p_value and a position p_value are passed, the value p_value[Math.min(p_pos, p_value.length-1)] is returned.
Parameters:
Name Type Argument Description
p_value Object
p_pos int <optional>
Source:
Returns:
A value.
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Sat Nov 16 2013 10:57:52 GMT+0100 (MEZ) using the DocStrap template.