woss::RandomGenerator class
More...
#include <random-generator-definitions.h>
woss::RandomGenerator class
Class for random value generation purposes
◆ RandomGenerator() [1/3]
| woss::RandomGenerator::RandomGenerator |
( |
int |
s = 0 | ) |
|
|
inline |
◆ ~RandomGenerator()
| virtual woss::RandomGenerator::~RandomGenerator |
( |
| ) |
|
|
virtualdefault |
◆ RandomGenerator() [2/3]
◆ RandomGenerator() [3/3]
◆ clone()
| virtual std::unique_ptr< RandomGenerator > woss::RandomGenerator::clone |
( |
| ) |
const |
|
inlinevirtual |
◆ create()
| virtual std::unique_ptr< RandomGenerator > woss::RandomGenerator::create |
( |
int |
seed | ) |
const |
|
inlinevirtual |
◆ getRand()
| double RandomGenerator::getRand |
( |
| ) |
const |
|
virtual |
◆ getRandInt()
| int RandomGenerator::getRandInt |
( |
| ) |
const |
|
virtual |
◆ getSeed()
| virtual int woss::RandomGenerator::getSeed |
( |
| ) |
const |
|
inlinevirtual |
Sets the seed
- Returns
- the seed
References seed.
◆ initialize()
| void RandomGenerator::initialize |
( |
| ) |
|
|
virtual |
◆ isValid()
| virtual bool woss::RandomGenerator::isValid |
( |
| ) |
const |
|
inlinevirtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setSeed()
| virtual void woss::RandomGenerator::setSeed |
( |
int |
s | ) |
|
|
inlinevirtual |
◆ initialized
| bool woss::RandomGenerator::initialized = false |
|
protected |
◆ seed
| int woss::RandomGenerator::seed = 0 |
|
protected |
The documentation for this class was generated from the following files: