public class PegRandom
extends java.lang.Object
Copyright: Copyright (c) 2002
Company: USC/ISI
Modifier and Type | Field and Description |
---|---|
private static java.util.Random |
mRandom
The object containing the instance
of the java.util.Random class.
|
Constructor and Description |
---|
PegRandom() |
Modifier and Type | Method and Description |
---|---|
static int |
getInteger(int upperIndex)
This calls the next double function
and returns an integer between the
0 and upper index.
|
static int |
getInteger(int lowerIndex,
int upperIndex)
This calls the next double function
and returns an integer between the
lower index and upper index.
|
static double |
nextDouble()
Returns a double value between
0.0 and 1.0.
|
static double |
nextGaussian()
Returns a normally distributed (gaussian) random variable between
0.0 and 1.0.
|
private static java.util.Random mRandom
public static double nextDouble()
public static double nextGaussian()
public static int getInteger(int upperIndex)
public static int getInteger(int lowerIndex, int upperIndex)