C++ Interface - Random Number Generation Engine Class.
More...
#include <random.h>
C++ Interface - Random Number Generation Engine Class.
The af::randomEngine class is used to set the type and seed of random number generation engine based on af::randomEngineType.
Definition at line 34 of file random.h.
◆ randomEngine() [1/3]
◆ randomEngine() [2/3]
C++ Interface copy constructor for a af::randomEngine.
- Parameters
-
[in] | other | input random engine object |
◆ randomEngine() [3/3]
C++ Interface to create a copy of the random engine object from a af_random_engine handle.
- Parameters
-
[in] | engine | The input random engine object |
◆ ~randomEngine()
◆ get()
C++ Interface to return the af_random_engine handle of this object.
- Returns
- handle to the af_random_engine associated with this random engine
◆ getSeed()
unsigned long long getSeed |
( |
void | | ) |
const |
C++ Interface to return the seed of the random engine.
- Returns
- seed associated with random engine
◆ getType()
C++ Interface to get the random type of the random engine.
- Returns
- af::randomEngineType associated with random engine
◆ operator=()
C++ Interface to assign the internal state of randome engine.
- Parameters
-
[in] | other | object to be assigned to the random engine |
- Returns
- the reference to this
◆ setSeed()
void setSeed |
( |
const unsigned long long | seed | ) |
|
C++ Interface to set the seed of the random engine.
- Parameters
-
[in] | seed | initializing seed of the random number generator |
◆ setType()
C++ Interface to set the random type of the random engine.
- Parameters
-
[in] | type | type of the random number generator |
The documentation for this class was generated from the following file: