Class Rand


  • final class Rand
    extends java.lang.Object
    Random numbers for both the compress and decompress BZip2 classes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] RNUMS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Rand()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static int rNums​(int i)
      Return the random number at a specific index.
      • Methods inherited from class java.lang.Object

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

      • RNUMS

        private static final int[] RNUMS
    • Constructor Detail

      • Rand

        Rand()
    • Method Detail

      • rNums

        static int rNums​(int i)
        Return the random number at a specific index.
        Parameters:
        i - the index
        Returns:
        the random number