public class UniformRandomGenerator extends Object implements NormalizedRandomGenerator
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].
Constructor and Description |
---|
UniformRandomGenerator(RandomGenerator generator)
Create a new generator.
|
public UniformRandomGenerator(RandomGenerator generator)
generator
- underlying random generator to usepublic double nextNormalizedDouble()
The number generated is uniformly distributed between -&sqrt;(3) and +&sqrt;(3).
nextNormalizedDouble
in interface NormalizedRandomGenerator
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.