SimpleGenerator
Name
SimpleGenerator -- Internal
Protocols adopted by SimpleGenerator
None
Methods
Phase: Creating
+
create: (id <Zone>)
aZone setStateFromSeeds: (unsigned *)
seeds +
create: (id <Zone>)
aZone setStateFromSeed: (unsigned)
seed
Phase: Using
- (unsigned long long int)
getCurrentCount The getCurrentCount method returns the count of variates generated.
- (long double)
getLongDoubleSample The getLongDoubleSample method returns a random floating point number of size long double, uniformly distributed in the range [0.0, 1.0). It uses 2 calls to -getUnsignedSample to fill the mantissa. Note: use of this method is not portable between architectures.
- (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.
- (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.
- (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.
- (unsigned)
getUnsignedSample The getUnsignedSample method returns a random unsigned integer uniformly distributed over [0,unsignedMax].