|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Random
PRRandom provides a system wide time-seeded randome number generator.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Method Summary | |
---|---|
boolean |
nextBoolean()
returns the next random boolean in the sequence |
void |
nextBytes(byte[] bytes)
fills the sypplied array of bytes with random bytes |
double |
nextDouble()
returns the next random double in the sequence |
float |
nextFloat()
returns the next random float in the sequence |
double |
nextGaussian()
returns the next Gaussian random (normal distribution) double in the sequence |
int |
nextInt()
returns the next random integer in the sequence |
int |
nextInt(int n)
returns the next random integer (between 0 and n inclusive) in the sequence |
long |
nextLong()
returns the next random long in the sequence |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
Method Detail |
---|
boolean nextBoolean()
Random.nextBoolean()
void nextBytes(byte[] bytes)
bytes
- Random.nextBytes(byte[])
double nextDouble()
Random.nextDouble()
double nextGaussian()
Random.nextGaussian()
float nextFloat()
Random.nextFloat()
int nextInt()
Random.nextInt()
int nextInt(int n)
n
- upper limit for the random numbers returned.
Random.nextInt(int n)
long nextLong()
Random.nextLong()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |