public interface Random
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
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
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
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()Copyright © 2014 Pegasystems Inc. All Rights Reserved.