Skyscraper 2.0
SBS::RandomGen Class Reference

#include <random.h>

Public Member Functions

 RandomGen ()
 
 RandomGen (unsigned int iSeed)
 
void Initialize ()
 
void Initialize (unsigned int iSeed)
 
float Get ()
 
unsigned int Get (unsigned int iLimit)
 
bool SelfTest ()
 

Private Member Functions

void InitRANMAR (unsigned int ij, unsigned int kl)
 
float RANMAR ()
 

Private Attributes

int i97
 
int j97
 
float u [98]
 
float c
 
float cd
 
float cm
 

Detailed Description

Definition at line 6 of file random.h.

Constructor & Destructor Documentation

◆ RandomGen() [1/2]

SBS::RandomGen::RandomGen ( )

Definition at line 37 of file random.cpp.

References Initialize().

Here is the call graph for this function:

◆ RandomGen() [2/2]

SBS::RandomGen::RandomGen ( unsigned int iSeed)

Definition at line 42 of file random.cpp.

References Initialize().

Here is the call graph for this function:

Member Function Documentation

◆ Get() [1/2]

◆ Get() [2/2]

unsigned int SBS::RandomGen::Get ( unsigned int iLimit)

Definition at line 141 of file random.cpp.

References Get().

Here is the call graph for this function:

◆ Initialize() [1/2]

void SBS::RandomGen::Initialize ( )

Definition at line 48 of file random.cpp.

References Initialize().

Referenced by Initialize(), RandomGen(), and RandomGen().

Here is the call graph for this function:

◆ Initialize() [2/2]

void SBS::RandomGen::Initialize ( unsigned int iSeed)

Definition at line 54 of file random.cpp.

References InitRANMAR().

Here is the call graph for this function:

◆ InitRANMAR()

void SBS::RandomGen::InitRANMAR ( unsigned int ij,
unsigned int kl )
private

Definition at line 62 of file random.cpp.

References c, cd, cm, i97, j97, and u.

Referenced by Initialize(), and SelfTest().

◆ RANMAR()

float SBS::RandomGen::RANMAR ( )
private

Definition at line 111 of file random.cpp.

References c, cd, cm, i97, j97, and u.

Referenced by Get(), and SelfTest().

◆ SelfTest()

bool SBS::RandomGen::SelfTest ( )

Definition at line 147 of file random.cpp.

References InitRANMAR(), and RANMAR().

Here is the call graph for this function:

Member Data Documentation

◆ c

float SBS::RandomGen::c
private

Definition at line 20 of file random.h.

Referenced by InitRANMAR(), and RANMAR().

◆ cd

float SBS::RandomGen::cd
private

Definition at line 20 of file random.h.

Referenced by InitRANMAR(), and RANMAR().

◆ cm

float SBS::RandomGen::cm
private

Definition at line 20 of file random.h.

Referenced by InitRANMAR(), and RANMAR().

◆ i97

int SBS::RandomGen::i97
private

Definition at line 18 of file random.h.

Referenced by InitRANMAR(), and RANMAR().

◆ j97

int SBS::RandomGen::j97
private

Definition at line 18 of file random.h.

Referenced by InitRANMAR(), and RANMAR().

◆ u

float SBS::RandomGen::u[98]
private

Definition at line 19 of file random.h.

Referenced by InitRANMAR(), and RANMAR().


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