textbender.g.util
Class RandomX
java.lang.Object
java.util.Random
RandomX
- All Implemented Interfaces:
- Serializable
public final class RandomX
- extends Random
Random generator extensions.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomX
public RandomX()
nextGaussian
public double nextGaussian(RandomX.Gaussian distribution)
- Returns the next pseudorandom Gaussian (normal) value.
When the distribution is a LimitedGaussian,
and its limits are not balanced around the mean,
the actual mean may be slightly larger or smaller;
because values outside of the limits are blindly clipped to fit.
- Parameters:
distribution
- Gaussian distribution to use