Inherited by Simulation.
The random number generator (RNG) Dist does need some 'global' data for generating independent random numbers. These data are stored in DistContext.
Public Member Functions | |
DistContext () | |
Construction. | |
virtual | ~DistContext () |
Destruction. | |
void | setSeed (int n=0) |
Set start seed for new RNG's. | |
Protected Member Functions | |
unsigned long | getSeed () |
Get current start seed. | |
unsigned long | getNextSeed () |
Get start seed for a new RNG. | |
Friends | |
class | Dist |
|
Construction.
|
|
Set start seed for new RNG's.
|
|
Get current start seed. This function returns the current seed without generating a new seed value. The returned value was used for the last created RNG in this context.
|
|
Get start seed for a new RNG. This function returns a new seed. The seed is generated by a random number generator different from the one used for ordinary random numbers. That is why the created random number generators in one DistContext are independent from one another. |