Class methods and the Math class

A static method belongs to the class and is called on the class's name, and Math's are all static, each returning the type its signature gives, which is how Math.random() scaled and cast becomes a whole number in a chosen range.

From AP Computer Science A.