Cbc  2.9.9
 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 953 of file CoinHelperFunctions.hpp.

Constructor & Destructor Documentation

CoinThreadRandom::CoinThreadRandom ( )

Default constructor.

Definition at line 959 of file CoinHelperFunctions.hpp.

CoinThreadRandom::CoinThreadRandom ( int  seed)

Constructor wih seed.

Definition at line 962 of file CoinHelperFunctions.hpp.

CoinThreadRandom::~CoinThreadRandom ( )


Definition at line 967 of file CoinHelperFunctions.hpp.

CoinThreadRandom::CoinThreadRandom ( const CoinThreadRandom rhs)

Definition at line 969 of file CoinHelperFunctions.hpp.

Member Function Documentation

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

Definition at line 972 of file CoinHelperFunctions.hpp.

void CoinThreadRandom::setSeed ( int  seed)

Set seed.

Definition at line 986 of file CoinHelperFunctions.hpp.

unsigned int CoinThreadRandom::getSeed ( ) const

Get seed.

Definition at line 991 of file CoinHelperFunctions.hpp.

double CoinThreadRandom::randomDouble ( ) const

return a random number

Definition at line 996 of file CoinHelperFunctions.hpp.

void CoinThreadRandom::randomize ( int  n = 0)

make more random (i.e. for startup)

Definition at line 1004 of file CoinHelperFunctions.hpp.

Member Data Documentation

unsigned int CoinThreadRandom::seed_

Current seed.

Definition at line 1019 of file CoinHelperFunctions.hpp.

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