Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

TRanrotBGenerator Class Reference

#include <randomc.h>

List of all members.

Public Methods

 TRanrotBGenerator ()
 TRanrotBGenerator (long int seed)
void RandomInit (long int seed)
int IRandom (int min, int max)
double Random ()

Protected Attributes

int p1
int p2
unsigned long randbuffer [KK]

Private Types

enum  constants { KK = 17, JJ = 10, R1 = 13, R2 = 9 }

Private Attributes

Mutex m_mutex


Member Enumeration Documentation

enum TRanrotBGenerator::constants [private]
 

Enumeration values:
KK  
JJ  
R1  
R2  

Definition at line 75 of file randomc.h.


Constructor & Destructor Documentation

TRanrotBGenerator::TRanrotBGenerator
 

Definition at line 30 of file Random-Ranrotb.cpp.

TRanrotBGenerator::TRanrotBGenerator long int seed
 

Definition at line 36 of file Random-Ranrotb.cpp.


Member Function Documentation

int TRanrotBGenerator::IRandom int min,
int max
 

Definition at line 78 of file Random-Ranrotb.cpp.

Referenced by DiscoveryPacket::DiscoveryPacket(), LinkLayerInterface::getRandomNeighbor(), Catcher::getUnconnectedNode(), NetworkLayer::pingThreadImpl(), and LinkLayerInterface::sendPacket().

double TRanrotBGenerator::Random
 

Definition at line 42 of file Random-Ranrotb.cpp.

Referenced by IRandom(), RandomInit(), NetworkLayer::handleConnectPacket(), and NetworkLayer::handleDiscoveryPacket().

void TRanrotBGenerator::RandomInit long int seed
 

Definition at line 92 of file Random-Ranrotb.cpp.

Referenced by TRanrotBGenerator().


Member Data Documentation

Mutex TRanrotBGenerator::m_mutex [private]
 

Definition at line 94 of file randomc.h.

int TRanrotBGenerator::p1 [protected]
 

Definition at line 87 of file randomc.h.

int TRanrotBGenerator::p2 [protected]
 

Definition at line 87 of file randomc.h.

unsigned long TRanrotBGenerator::randbuffer[KK] [protected]
 

Definition at line 88 of file randomc.h.


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:32:00 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001