FANDOM


java.lang.Math is a library in Java containing several math related functions. It is contained inside the java.lang library and therefore is imported into any java program automatically.

Math.random Edit

Java's Math.random() function generates and returns a pseudorandom number between 0 and 1. It takes no parameters.

Math.round Edit

Returns the variable used as its parameter as a rounded number containing no decimals.J

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.