java.lang.Object
io.github.vampirestudios.vampirelib.utils.Rands

public class Rands extends Object
  • Constructor Details

    • Rands

      public Rands()
  • Method Details

    • getRandom

      public static Random 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

      public static Color randColor()
    • chance

      public static boolean chance(int bound)
    • values

      public static <O> O values(O[] values)
    • list

      public static <O> O list(List<O> list)
    • map

      public static <K, V> Map.Entry<K,V> map(Map<K,V> map)