Pioneer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Random Class Reference

#include <Random.h>

Inheritance diagram for Random:
Inheritance graph
[legend]
Collaboration diagram for Random:
Collaboration graph
[legend]

Public Member Functions

 Random (const Uint32 initialSeed=0xabcd1234)
 
 Random (const Uint32 *const seeds, size_t length)
 
 Random (const Uint64 *const seeds, size_t length)
 
void seed (const Uint32 *const seeds, size_t length)
 
void seed (const Uint64 *const seeds, size_t length)
 
void seed (const Uint32 value)
 
Uint32 Int32 ()
 
Uint32 Int32 (const int choices)
 
int Int32 (const int min, const int max)
 
double Double ()
 
double Double_closed ()
 
double Double_open ()
 
double Double53 ()
 
double Double (double min, double limit)
 
double Double (double limit)
 
double Double_closed (double max)
 
double Double_closed (double min, double max)
 
double NDouble (int p)
 
double Normal ()
 
double Normal (const double mean)
 
double Normal (const double mean, const double stddev)
 
int Poisson (const double lambda)
 
fixed Fixed ()
 
fixed NFixed (int p)
 
const pcg32 & GetPCG () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Constructor & Destructor Documentation

◆ Random() [1/3]

Random::Random ( const Uint32  initialSeed = 0xabcd1234)
inline
Here is the call graph for this function:

◆ Random() [2/3]

Random::Random ( const Uint32 *const  seeds,
size_t  length 
)
inline
Here is the call graph for this function:

◆ Random() [3/3]

Random::Random ( const Uint64 *const  seeds,
size_t  length 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ Double() [1/3]

double Random::Double ( )
inline
Here is the call graph for this function:

◆ Double() [2/3]

double Random::Double ( double  limit)
inline
Here is the call graph for this function:

◆ Double() [3/3]

double Random::Double ( double  min,
double  limit 
)
inline
Here is the call graph for this function:

◆ Double53()

double Random::Double53 ( )
inline
Here is the call graph for this function:

◆ Double_closed() [1/3]

double Random::Double_closed ( )
inline
Here is the call graph for this function:

◆ Double_closed() [2/3]

double Random::Double_closed ( double  max)
inline
Here is the call graph for this function:

◆ Double_closed() [3/3]

double Random::Double_closed ( double  min,
double  max 
)
inline
Here is the call graph for this function:

◆ Double_open()

double Random::Double_open ( )
inline
Here is the call graph for this function:

◆ Fixed()

fixed Random::Fixed ( )
inline
Here is the call graph for this function:

◆ GetPCG()

const pcg32 & Random::GetPCG ( ) const
inline

◆ Int32() [1/3]

Uint32 Random::Int32 ( )
inline

◆ Int32() [2/3]

Uint32 Random::Int32 ( const int  choices)
inline
Here is the call graph for this function:

◆ Int32() [3/3]

int Random::Int32 ( const int  min,
const int  max 
)
inline
Here is the call graph for this function:

◆ NDouble()

double Random::NDouble ( int  p)
inline
Here is the call graph for this function:

◆ NFixed()

fixed Random::NFixed ( int  p)
inline
Here is the call graph for this function:

◆ Normal() [1/3]

double Random::Normal ( )
inline
Here is the call graph for this function:

◆ Normal() [2/3]

double Random::Normal ( const double  mean)
inline
Here is the call graph for this function:

◆ Normal() [3/3]

double Random::Normal ( const double  mean,
const double  stddev 
)
inline
Here is the call graph for this function:

◆ Poisson()

int Random::Poisson ( const double  lambda)
inline
Here is the call graph for this function:

◆ seed() [1/3]

void Random::seed ( const Uint32 *const  seeds,
size_t  length 
)
inline

◆ seed() [2/3]

void Random::seed ( const Uint32  value)
inline
Here is the call graph for this function:

◆ seed() [3/3]

void Random::seed ( const Uint64 *const  seeds,
size_t  length 
)
inline
Here is the call graph for this function:

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