Class RandomUtils


  • public class RandomUtils
    extends java.lang.Object
    Author:
    Loc Ha
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] nextBytes​(int length)  
      static byte[] nextBytes​(int length, java.util.Random random)  
      static int[] nextIndexes​(int n)  
      static int[] nextIndexes​(int n, java.util.Random random)  
      static int nextInt​(int min, int max)  
      static int nextInt​(int min, int max, java.util.Random random)  
      static int rdCompare()  
      static int rdCompare​(java.util.Random random)  
      • Methods inherited from class java.lang.Object

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

      • RandomUtils

        public RandomUtils()
    • Method Detail

      • nextBytes

        public static byte[] nextBytes​(int length)
      • nextBytes

        public static byte[] nextBytes​(int length,
                                       java.util.Random random)
      • nextInt

        public static int nextInt​(int min,
                                  int max)
      • nextInt

        public static int nextInt​(int min,
                                  int max,
                                  java.util.Random random)
      • nextIndexes

        public static int[] nextIndexes​(int n)
      • nextIndexes

        public static int[] nextIndexes​(int n,
                                        java.util.Random random)
      • rdCompare

        public static int rdCompare()
      • rdCompare

        public static int rdCompare​(java.util.Random random)