Package org.hipparchus.random
Class UniformRandomGenerator
java.lang.Object
org.hipparchus.random.UniformRandomGenerator
- All Implemented Interfaces:
NormalizedRandomGenerator
This class implements a normalized uniform random generator.
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 Details
-
Method Details
-
nextNormalizedDouble
public double nextNormalizedDouble()Generate a random scalar with null mean and unit standard deviation.The number generated is uniformly distributed between
and .- Specified by:
nextNormalizedDouble
in interfaceNormalizedRandomGenerator
- Returns:
- a random scalar with null mean and unit standard deviation
-