|
World Ocean Simulation System (WOSS) library
|


Public Member Functions | |
| WossRandomGenerator (int seed=0) | |
| WossRandomGenerator (const WossRandomGenerator ©) | |
| WossRandomGenerator & | operator= (const WossRandomGenerator ©) |
| virtual WossRandomGenerator * | create (int s) |
| virtual WossRandomGenerator * | clone () const |
| virtual double | getRand () const |
| virtual int | getRandInt () const |
| virtual void | initialize () |
Public Member Functions inherited from woss::RandomGenerator | |
| RandomGenerator (int s=0) | |
| virtual | ~RandomGenerator () |
| virtual RandomGenerator * | create (double seed) |
| virtual bool | isValid () const |
| virtual void | setSeed (int s) |
| virtual int | getSeed () const |
Protected Attributes | |
| RNG * | rng |
Protected Attributes inherited from woss::RandomGenerator | |
| int | seed |
| bool | initialized |
|
inlinevirtual |
RandomGenerator virtual factory method
Reimplemented from woss::RandomGenerator.
|
virtual |
Gets a random value
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized.
|
virtual |
Gets a random integer value
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized.
|
virtual |
Mandatory function to initialize the instance
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized, and woss::RandomGenerator::seed.