C++ Interface - Random Number Generation Engine Class. More...
#include <random.h>
Public Member Functions | |
| randomEngine (randomEngineType typeIn=AF_RANDOM_ENGINE_DEFAULT, unsigned long long seedIn=0) | |
| C++ Interface to create a randomEngine object with a randomEngineType and a seed. | |
| randomEngine (const randomEngine &other) | |
| C++ Interface copy constructor for a randomEngine. | |
| randomEngine (af_random_engine engine) | |
| C++ Interface to create a copy of the random engine object from a af_random_engine handle. | |
| ~randomEngine () | |
| C++ Interface destructor for a randomEngine. | |
| randomEngine & | operator= (const randomEngine &other) |
| C++ Interface to assign the internal state of randome engine. | |
| void | setType (const randomEngineType type) |
| C++ Interface to set the random type of the random engine. | |
| randomEngineType | getType (void) |
| C++ Interface to get the random type of the random engine. | |
| void | setSeed (const unsigned long long seed) |
| C++ Interface to set the seed of the random engine. | |
| unsigned long long | getSeed (void) const |
| C++ Interface to return the seed of the random engine. | |
| af_random_engine | get (void) const |
| C++ Interface to return the af_random_engine handle of this object. | |
C++ Interface - Random Number Generation Engine Class.
The randomEngine class is used to set the type and seed of random number generation engine based on randomEngineType.
|
explicit |
C++ Interface to create a randomEngine object with a randomEngineType and a seed.
| randomEngine | ( | const randomEngine & | other | ) |
C++ Interface copy constructor for a randomEngine.
| [in] | other | input random engine object |
| randomEngine | ( | af_random_engine | engine | ) |
C++ Interface to create a copy of the random engine object from a af_random_engine handle.
| [in] | engine | The input random engine object |
| ~randomEngine | ( | ) |
C++ Interface destructor for a randomEngine.
| af_random_engine get | ( | void | ) | const |
C++ Interface to return the af_random_engine handle of this object.
| unsigned long long getSeed | ( | void | ) | const |
C++ Interface to return the seed of the random engine.
| randomEngineType getType | ( | void | ) |
C++ Interface to get the random type of the random engine.
| randomEngine & operator= | ( | const randomEngine & | other | ) |
C++ Interface to assign the internal state of randome engine.
| [in] | other | object to be assigned to the random engine |
| void setSeed | ( | const unsigned long long | seed | ) |
C++ Interface to set the seed of the random engine.
| [in] | seed | initializing seed of the random number generator |
| void setType | ( | const randomEngineType | type | ) |
C++ Interface to set the random type of the random engine.
| [in] | type | type of the random number generator |