The Math class provides methods such as abs(), sqrt(), pow(), min(), max().
Math
abs()
sqrt()
pow()
min()
max()
Use Math.random() to generate a random double between 0.0 and 1.0.
Math.random()
Use Math.round(), Math.floor(), and Math.ceil() to round numbers.
Math.round()
Math.floor()
Math.ceil()