Class RandomUtil


  • public class RandomUtil
    extends java.lang.Object
    Random utility class.
    Since:
    2.1.0
    Author:
    Lijun Liao (xipki)
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] nextBytes​(int num)  
      static java.lang.String nextHexLong()  
      static int nextInt()  
      static int nextInt​(int bound)  
      static long nextLong()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomUtil

        public RandomUtil()
    • Method Detail

      • nextHexLong

        public static java.lang.String nextHexLong()
      • nextLong

        public static long nextLong()
      • nextInt

        public static int nextInt()
      • nextInt

        public static int nextInt​(int bound)
      • nextBytes

        public static byte[] nextBytes​(int num)