java.lang.Object
studio.magemonkey.codex.util.random.Rnd

public class Rnd extends Object
  • Field Details

    • rnd

      public static final MTRandom rnd
  • Constructor Details

    • Rnd

      public Rnd()
  • Method Details

    • get

      public static float get()
    • get

      public static float get(boolean normalize)
    • get

      public static int get(int n)
    • get

      public static int get(int min, int max)
    • getDouble

      public static double getDouble(double max)
    • getDouble

      public static double getDouble(double min, double max)
    • getDoubleNega

      public static double getDoubleNega(double min, double max)
    • get

      @NotNull public static <E> E get(@NotNull E[] list)
    • get

      public static int get(int[] list)
    • get

      @Nullable public static <E> E get(@NotNull List<E> list)
    • get

      @Nullable public static <T> T get(@NotNull Map<T,Double> map)
    • get

      @NotNull public static <T> List<T> get(@NotNull Map<T,Double> map, int amount)
    • getRandomItem

      @Nullable @Deprecated public static <T> T getRandomItem(@NotNull Map<T,Double> map)
      Deprecated.
    • getRandomItem

      @Deprecated @Nullable public static <T> T getRandomItem(@NotNull Map<T,Double> map, boolean alwaysHundred)
      Deprecated.
    • chance

      public static boolean chance(int chance)
    • chance

      public static boolean chance(double chance)
    • nextInt

      public static int nextInt(int n)
    • nextInt

      public static int nextInt()
    • nextDouble

      public static double nextDouble()
    • nextGaussian

      public static double nextGaussian()
    • nextBoolean

      public static boolean nextBoolean()
    • spawnRandomFirework

      @NotNull public static org.bukkit.entity.Firework spawnRandomFirework(@NotNull org.bukkit.Location loc)
    • getColoredMaterial

      @NotNull public static org.bukkit.Material getColoredMaterial(@NotNull org.bukkit.Material m)