public abstract class RandomSynchronized extends RandomElement implements Serializable
Source code is available.
RandomElement,
Serialized Form| Constructor and Description |
|---|
RandomSynchronized(RandomElement rng) |
| Modifier and Type | Method and Description |
|---|---|
int |
choose(int lo,
int hi)
Wrapped so generators can override.
|
double |
gaussian()
Must be synchronized because state is stored in BMoutput
|
double |
raw()
Synchronized the raw() method, which is generally not threadsafe.
|
void |
raw(double[] d,
int n)
This method probably isn't threadsafe in implementations, so it's
synchronized
|
public RandomSynchronized(RandomElement rng)
public double raw()
raw in class RandomElementRandomJavapublic void raw(double[] d,
int n)
raw in class RandomElementd - array to be filled with doublesn - number of doubles to generatepublic int choose(int lo,
int hi)
choose in class RandomElementlo - lower limit of rangehi - upper limit of rangepublic double gaussian()
gaussian in class RandomElementCopyright © 2015. All rights reserved.