|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to Pseudo-random number generators.
This interface provides access to classes that generate uniform random numbers. Values can be obtained either as integers, or as doubles on [0,1).
Method Summary | |
double |
getDoubleEpsilon()
Return the minimum possible difference between two generated double's. |
int |
getIntRange()
Return the largest int value returned by nextInt<\b>. |
PRNGState |
getState()
Return an object describing the state of the PRNG. |
double |
nextDouble()
Generate a pseudo-random double value from a uniforml distribion on [0,1) |
double[] |
nextDoubleArray(int n)
Generate several pseudo-random doubles from a uniforml distribion on [0,1) |
int |
nextInt()
Generate a pseudo-random integer from a uniforml distribion on [0,intRange) |
int[] |
nextIntArray(int n)
Generate several pseudo-random integers from a uniforml distribion on [0,intRange) |
Method Detail |
public int nextInt()
public int[] nextIntArray(int n)
n
- number of integer deviates to returnpublic int getIntRange()
public double nextDouble()
public double[] nextDoubleArray(int n)
n
- number of integer deviates to returnpublic double getDoubleEpsilon()
public PRNGState getState()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |