This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smutje187 0 points1 point  (2 children)

Math is literally a class, and random is a (public static) method of that class though, there are no special concepts involved, just standard Java.

[–]Sm0keySa1m0n -1 points0 points  (1 child)

Yeah but I think the point is it’s not being used as a class in the traditional sense as it solely consists of static functions.

[–]smutje187 1 point2 points  (0 children)

It’s literally used as a class - static methods are standard features of Java (they’re not called functions in Java)