Top Constructors Methods
io.github.darvil.utils

public final Class Random

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
randInt(int min, int max)

Returns a random integer between min and max.

public static int
randInt(int max)

Returns a random integer between 0 and max.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Randomback to summary
private Random()

Method Detail

randIntback to summary
public static int randInt(int min, int max)

Returns a random integer between min and max. First inclusive, last exclusive. [min, max)

randIntback to summary
public static int randInt(int max)

Returns a random integer between 0 and max. First inclusive, last exclusive. [0, max)