swarm.random
Interface SimpleOut

All Known Subinterfaces:
C2TAUS1gen, C2TAUS2gen, C2TAUS3gen, C2TAUSgen, MT19937gen, PMMLCG1gen, PMMLCGgen, PSWBgen, SimpleRandomGenerator

public abstract interface SimpleOut

Internal.


Method Summary
 double getDoubleSample()
          The getDoubleSample method returns a random floating point number of size double, uniformly distributed in the range [0.0, 1.0).
 float getFloatSample()
          The getFloatSample method returns a random floating point number of size float, uniformly distributed in the range [0.0, 1.0).
 double getThinDoubleSample()
          The getThinDoubleSample method returns a random floating point number of size double, uniformly distributed in the range [0.0, 1.0).
 int getUnsignedMax()
          The getUnsignedMax method returns the highest value that will ever be returned by -getUnsignedSample (the lowest is 0).
 int getUnsignedSample()
          The getUnsignedSample method returns a random unsigned integer uniformly distributed over [0,unsignedMax].
 

Method Detail

getUnsignedMax

public int getUnsignedMax()
The getUnsignedMax method returns the highest value that will ever be returned by -getUnsignedSample (the lowest is 0).

getUnsignedSample

public int getUnsignedSample()
The getUnsignedSample method returns a random unsigned integer uniformly distributed over [0,unsignedMax].

getFloatSample

public float getFloatSample()
The getFloatSample method returns a random floating point number of size float, uniformly distributed in the range [0.0, 1.0). It uses 1 call to -getUnsignedSample to fill the mantissa.

getThinDoubleSample

public double getThinDoubleSample()
The getThinDoubleSample method returns a random floating point number of size double, uniformly distributed in the range [0.0, 1.0). It uses 1 call to -getUnsignedSample to fill the mantissa.

getDoubleSample

public double getDoubleSample()
The getDoubleSample method returns a random floating point number of size double, uniformly distributed in the range [0.0, 1.0). It uses 2 calls to -getUnsignedSample to fill the mantissa.