Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Random Class Reference

#include <rng.h>

Inheritance diagram for Random:

Constant Deterministic Empirical Exponential Normal Pareto Sequential Uniform Weibull List of all members.

Public Member Functions

 Random ()
virtual ~Random ()
virtual Random_t Value ()
virtual IRandom_t IntValue ()
virtual RandomCopy () const
bool SetSeed (const Seed &)

Static Public Member Functions

void UseDevRandom (bool udr=true)
bool GlobalSeed (Seed_t, Seed_t, Seed_t, Seed_t, Seed_t, Seed_t)
bool GlobalSeed (const Seed &)

Static Protected Attributes

unsigned long heuristic_sequence
RngStreamglobalRNG

Static Private Member Functions

void Initialize ()
void GetRandomSeeds (Seed_t seeds[6])

Private Attributes

RngStreamprivateStream

Static Private Attributes

bool useDevRandom = false
bool globalSeedSet = false
int devRandom = -1
Seed_t globalSeed [6]

Constructor & Destructor Documentation

Random::Random  ) 
 

virtual Random::~Random  )  [inline, virtual]
 


Member Function Documentation

Random * Random::Copy  )  const [virtual]
 

Reimplemented in Uniform, Constant, Sequential, Exponential, Pareto, Weibull, Normal, Empirical, IntEmpirical, and Deterministic.

void Random::GetRandomSeeds Seed_t  seeds[6]  )  [static, private]
 

bool Random::GlobalSeed const Seed  )  [static]
 

bool Random::GlobalSeed Seed_t  ,
Seed_t  ,
Seed_t  ,
Seed_t  ,
Seed_t  ,
Seed_t 
[static]
 

void Random::Initialize  )  [static, private]
 

virtual IRandom_t Random::IntValue  )  [inline, virtual]
 

Reimplemented in Constant, and IntEmpirical.

bool Random::SetSeed const Seed  ) 
 

void Random::UseDevRandom bool  udr = true  )  [inline, static]
 

Random_t Random::Value  )  [virtual]
 

Reimplemented in HttpThinkTime, NETIHttpSameThinkTime, NETIHttpDiffThinkTime, Uniform, Constant, Sequential, Exponential, Pareto, Weibull, Normal, Empirical, and Deterministic.


Member Data Documentation

int Random::devRandom = -1 [static, private]
 

RngStream * Random::globalRNG [static, protected]
 

Seed_t Random::globalSeed [static, private]
 

bool Random::globalSeedSet = false [static, private]
 

unsigned long Random::heuristic_sequence [static, protected]
 

RngStream* Random::privateStream [private]
 

bool Random::useDevRandom = false [static, private]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 27 16:17:32 2008 for Georgia Tech Network Simulator (GTNetS) by  doxygen 1.3.9.1