#include <CoinHelperFunctions.hpp>
Public Member Functions | |
Constructors, destructor | |
| CoinThreadRandom () | |
| Default constructor. | |
| CoinThreadRandom (int seed) | |
| Constructor wih seed. | |
| ~CoinThreadRandom () | |
| Destructor. | |
| CoinThreadRandom (const CoinThreadRandom &rhs) | |
| Default constructor. | |
| CoinThreadRandom & | operator= (const CoinThreadRandom &rhs) |
| Default constructor. | |
Sets/gets | |
| void | setSeed (int seed) |
| Set seed. | |
| double | randomDouble () const |
| return a random number | |
Protected Attributes | |
Data members | |
The data members are protected to allow access for derived classes. | |
| unsigned int | seed_ |
| Current seed. | |
Definition at line 881 of file CoinHelperFunctions.hpp.
| CoinThreadRandom::CoinThreadRandom | ( | ) | [inline] |
| CoinThreadRandom::CoinThreadRandom | ( | int | seed | ) | [inline] |
| CoinThreadRandom::~CoinThreadRandom | ( | ) | [inline] |
| CoinThreadRandom::CoinThreadRandom | ( | const CoinThreadRandom & | rhs | ) | [inline] |
| CoinThreadRandom& CoinThreadRandom::operator= | ( | const CoinThreadRandom & | rhs | ) | [inline] |
| void CoinThreadRandom::setSeed | ( | int | seed | ) | [inline] |
Set seed.
Definition at line 914 of file CoinHelperFunctions.hpp.
References seed_.
Referenced by ClpModel::setRandomSeed().
| double CoinThreadRandom::randomDouble | ( | ) | const [inline] |
unsigned int CoinThreadRandom::seed_ [mutable, protected] |
Current seed.
Definition at line 934 of file CoinHelperFunctions.hpp.
Referenced by CoinThreadRandom(), operator=(), randomDouble(), and setSeed().
1.4.7