Cgl  0.60.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
CoinThreadRandom Class Reference

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)
CoinThreadRandomoperator= (const CoinThreadRandom &rhs)
void setSeed (int seed)
 Set seed. More...
unsigned int getSeed () const
 Get seed. More...
double randomDouble () const
 return a random number More...
void randomize (int n=0)
 make more random (i.e. for startup) More...

Protected Attributes

Data members

The data members are protected to allow access for derived classes.

unsigned int seed_
 Current seed. More...

Detailed Description

Class for thread specific random numbers.

Definition at line 1089 of file CoinHelperFunctions.hpp.

Constructor & Destructor Documentation

CoinThreadRandom::CoinThreadRandom ( )

Default constructor.

Definition at line 1095 of file CoinHelperFunctions.hpp.

CoinThreadRandom::CoinThreadRandom ( int  seed)

Constructor wih seed.

Definition at line 1100 of file CoinHelperFunctions.hpp.

CoinThreadRandom::~CoinThreadRandom ( )


Definition at line 1105 of file CoinHelperFunctions.hpp.

CoinThreadRandom::CoinThreadRandom ( const CoinThreadRandom rhs)

Definition at line 1107 of file CoinHelperFunctions.hpp.

Member Function Documentation

CoinThreadRandom& CoinThreadRandom::operator= ( const CoinThreadRandom rhs)

Definition at line 1112 of file CoinHelperFunctions.hpp.

void CoinThreadRandom::setSeed ( int  seed)

Set seed.

Definition at line 1126 of file CoinHelperFunctions.hpp.

unsigned int CoinThreadRandom::getSeed ( ) const

Get seed.

Definition at line 1131 of file CoinHelperFunctions.hpp.

double CoinThreadRandom::randomDouble ( ) const

return a random number

Definition at line 1136 of file CoinHelperFunctions.hpp.

void CoinThreadRandom::randomize ( int  n = 0)

make more random (i.e. for startup)

Definition at line 1144 of file CoinHelperFunctions.hpp.

Member Data Documentation

unsigned int CoinThreadRandom::seed_

Current seed.

Definition at line 1158 of file CoinHelperFunctions.hpp.

The documentation for this class was generated from the following file: