Class for thread specific random numbers. More...
#include <CoinHelperFunctions.hpp>
Public Member Functions | |
Constructors, destructor | |
| CoinThreadRandom () | |
| Default constructor. More... | |
| CoinThreadRandom (int seed) | |
| Constructor wih seed. More... | |
| ~CoinThreadRandom () | |
| Destructor. More... | |
| CoinThreadRandom (const CoinThreadRandom &rhs) | |
| Default constructor. More... | |
| CoinThreadRandom & | operator= (const CoinThreadRandom &rhs) |
| Default constructor. More... | |
Sets/gets | |
| void | setSeed (int seed) |
| Set seed. More... | |
| unsigned int | getSeed () const |
| Get seed. More... | |
| double | randomDouble () const |
| return a random number More... | |
Protected Attributes | |
Data members | |
The data members are protected to allow access for derived classes. | |
| unsigned int | seed_ |
| Current seed. More... | |
Class for thread specific random numbers.
Definition at line 913 of file CoinHelperFunctions.hpp.
|
inline |
Default constructor.
Definition at line 919 of file CoinHelperFunctions.hpp.
|
inline |
Constructor wih seed.
Definition at line 922 of file CoinHelperFunctions.hpp.
|
inline |
Destructor.
Definition at line 927 of file CoinHelperFunctions.hpp.
|
inline |
Default constructor.
Definition at line 929 of file CoinHelperFunctions.hpp.
|
inline |
Default constructor.
Definition at line 932 of file CoinHelperFunctions.hpp.
|
inline |
Set seed.
Definition at line 946 of file CoinHelperFunctions.hpp.
|
inline |
Get seed.
Definition at line 951 of file CoinHelperFunctions.hpp.
|
inline |
return a random number
Definition at line 956 of file CoinHelperFunctions.hpp.
|
mutableprotected |
Current seed.
Definition at line 971 of file CoinHelperFunctions.hpp.
1.8.7