Class RandomUtil

java.lang.Object
com.github.shoothzj.javatool.util.RandomUtil

public class RandomUtil extends Object
Author:
shoothzj
  • Constructor Details

    • RandomUtil

      public RandomUtil()
  • Method Details

    • randomBoolean

      public static boolean randomBoolean()
    • nextInt

      public static int nextInt()
    • nextInt

      public static int nextInt(int bound)
    • randomInt

      public static int randomInt(int min, int max)
    • randomEnum

      public static <T extends Enum<?>> T randomEnum(Class<T> clazz)
    • chooseOne

      public static <E> E chooseOne(List<? extends E> list)
    • getSecRanByte

      public byte[] getSecRanByte(int len)