**'cern.jet.random.tfloat.engine.FloatRandomEngine'**Java class

## Class FloatRandomEngine

- java.lang.Object
- cern.colt.PersistentObject
- cern.jet.random.tfloat.engine.FloatRandomEngine

- All Implemented Interfaces:
- FloatFunction, IntFunction, Serializable, Cloneable

- Direct Known Subclasses:
- FloatMersenneTwister, FRand

public abstract class FloatRandomEngineextends PersistentObjectimplements FloatFunction, IntFunction

Abstract base class for uniform pseudo-random number generating engines.Most probability distributions are obtained by using a

**uniform**pseudo-random number generation engine followed by a transformation to the desired distribution. Thus, subclasses of this class are at the core of computational statistics, simulations, Monte Carlo methods, etc.Subclasses produce uniformly distributed

`int`'s and`long`'s in the closed intervals`[Integer.MIN_VALUE,Integer.MAX_VALUE]`and`[Long.MIN_VALUE,Long.MAX_VALUE]`, respectively, as well as`float`'s and`float`'s in the open unit intervals`(0.0f,1.0f)`and`(0.0,1.0)`, respectively.Subclasses need to override one single method only:

`nextInt()`. All other methods generating different data types or ranges are usually layered upon`nextInt()`.`long`'s are formed by concatenating two 32 bit`int`'s.`float`'s are formed by dividing the interval`[0.0f,1.0f]`into 2^{32}sub intervals, then randomly choosing one subinterval.`float`'s are formed by dividing the interval`[0.0,1.0]`into 2^{64}sub intervals, then randomly choosing one subinterval.Note that this implementation is

**not synchronized**.- See Also:
`FloatMersenneTwister`

,`MersenneTwister64`

,`Random`

, Serialized Form

**Warning:**You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.