Since it is a normalized random generator, it generates values from a uniform distribution with mean equal to 0 and standard deviation equal to 1. Generated values fall in the range [-√3, +√3].
| Modifier and Type | Field and Description |
|---|---|
| private final RandomGenerator | generator
Underlying generator. |
| private static final double | SQRT3
Square root of three. |
| Access | Constructor and Description |
|---|---|
| public | UniformRandomGenerator(RandomGenerator
underlying random generator to use generator)Create a new generator. |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: a random scalar with null mean and unit standard deviationImplements org. Generate a random scalar with null mean and unit standard deviation. |
| generator | back to summary |
|---|---|
| private final RandomGenerator generator Underlying generator. | |
| SQRT3 | back to summary |
|---|---|
| private static final double SQRT3 Square root of three. | |
| UniformRandomGenerator | back to summary |
|---|---|
| public UniformRandomGenerator(RandomGenerator generator) Create a new generator.
| |
| nextNormalizedDouble | back to summary |
|---|---|
| public double nextNormalizedDouble() Implements org. Generate a random scalar with null mean and unit standard deviation. The number generated is uniformly distributed between -&sqrt;(3) and +&sqrt;(3).
| |