Class Random

java.lang.Object
org.jruby.util.Random

public class Random extends Object
  • Field Details

  • Constructor Details

    • Random

      public Random()
    • Random

      public Random(int s)
    • Random

      public Random(int[] initKey)
    • Random

      public Random(Random orig)
    • Random

      public Random(int[] state, int left)
  • Method Details

    • MIXBITS

      private static int MIXBITS(int u, int v)
    • TWIST

      private static int TWIST(int u, int v)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • initGenrand

      private void initGenrand(int s)
    • initByArray

      private void initByArray(int[] initKey)
    • nextState

      private void nextState()
    • genrandInt32

      public int genrandInt32()
    • genrandReal

      public double genrandReal()
    • genrandReal2

      public double genrandReal2()
    • intPairToRealInclusive

      private double intPairToRealInclusive(int a, int b)
    • getState

      public int[] getState()
    • getLeft

      public int getLeft()