Class Rands
java.lang.Object
io.github.vampirestudios.vampirelib.utils.Rands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanchance(int bound) static Randomstatic <O> Ostatic <K,V> Map.Entry<K, V> static Colorstatic floatrandFloat(float bound) static floatrandFloatRange(float min, float max) static intrandInt(int bound) static intrandIntRange(int min, int max) static <O> Ovalues(O[] values)
-
Constructor Details
-
Rands
public Rands()
-
-
Method Details
-
getRandom
-
randInt
public static int randInt(int bound) -
randIntRange
public static int randIntRange(int min, int max) -
randFloatRange
public static float randFloatRange(float min, float max) -
randFloat
public static float randFloat(float bound) -
randColor
-
chance
public static boolean chance(int bound) -
values
public static <O> O values(O[] values) -
list
-
map
-