Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
TUniformRandomDouble
Purpose:
Abstract base class used for deriving double-precision random number generators.
Instantiation:
Abstract base class; do not instantiate.
Deriving Classes:
Derived classes must implement the constructors, the destructor, and the member functions SetSeed, GetSeed, and Next. It is intended that derived classes provide random number generators with various distributions (uniform, normal, exponential, and so on) which can use different algorithms for a given distribution. Derived classes usually require additional member functions and data members. See, for example, class TUniformRandomDouble.
Concurrency:
Multithread safe because objects cannot be instantiated. Derived classes are, in general, not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
virtual ~ TRandomDouble ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe because objects cannot be instantiated. Derived classes are, in general, not multithread safe.
Other Considerations:
None.
virtual double Next ()
Interface Category:
API.
Purpose:
Generates the next value in a sequence of pseudo-random double-precision numbers.
Calling Context:
Called to generate the next value in a sequence of pseudo-random double-precision numbers.
Parameters:
Return Value:
double -The next value in a sequence of pseudo-random double-precision numbers.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe because objects cannot be instantiated. Derived classes are, in general, not multithread safe.
Other Considerations:
None.
TRandomDouble ()
Interface Category:
API.
Purpose:
Default constructor, does nothing.
Calling Context:
Called by the stream-in operators.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe because objects cannot be instantiated. Derived classes are, in general, not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.