Class for thread specific random numbers. More...
#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 | |
| unsigned int | seed_ |
| Current seed. | |
Class for thread specific random numbers.
Definition at line 855 of file CoinHelperFunctions.hpp.
| CoinThreadRandom::CoinThreadRandom | ( | ) | [inline] |
Default constructor.
Definition at line 861 of file CoinHelperFunctions.hpp.
| CoinThreadRandom::CoinThreadRandom | ( | int | seed | ) | [inline] |
Constructor wih seed.
Definition at line 864 of file CoinHelperFunctions.hpp.
| CoinThreadRandom::~CoinThreadRandom | ( | ) | [inline] |
Destructor.
Definition at line 869 of file CoinHelperFunctions.hpp.
| CoinThreadRandom::CoinThreadRandom | ( | const CoinThreadRandom & | rhs | ) | [inline] |
Default constructor.
Definition at line 871 of file CoinHelperFunctions.hpp.
| CoinThreadRandom& CoinThreadRandom::operator= | ( | const CoinThreadRandom & | rhs | ) | [inline] |
Default constructor.
Definition at line 874 of file CoinHelperFunctions.hpp.
| void CoinThreadRandom::setSeed | ( | int | seed | ) | [inline] |
Set seed.
Definition at line 888 of file CoinHelperFunctions.hpp.
| double CoinThreadRandom::randomDouble | ( | ) | const [inline] |
return a random number
Definition at line 893 of file CoinHelperFunctions.hpp.
unsigned int CoinThreadRandom::seed_ [mutable, protected] |
Current seed.
Definition at line 908 of file CoinHelperFunctions.hpp.
1.6.1