Package org.jruby.util
Class Random
java.lang.Object
org.jruby.util.Random
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
double
double
int
getLeft()
int[]
getState()
int
hashCode()
static double
intPairToRealExclusive
(int a, int b) static double
intPairToRealInclusive
(int a, int b)
-
Field Details
-
N
public static final int N- See Also:
-
-
Constructor Details
-
Random
public Random() -
Random
public Random(int s) -
Random
public Random(int[] initKey) -
Random
-
Random
public Random(int[] state, int left)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
genrandInt32
public int genrandInt32() -
genrandReal
public double genrandReal() -
intPairToRealExclusive
public static double intPairToRealExclusive(int a, int b) -
genrandReal2
public double genrandReal2() -
intPairToRealInclusive
public static double intPairToRealInclusive(int a, int b) -
getState
public int[] getState() -
getLeft
public int getLeft()
-