Public Member Functions | List of all members
CLinearCongruentialGenerator Class Reference

Basic LCG implementation. More...

#include <ionRand.h>

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

Public Member Functions

 CLinearCongruentialGenerator (u32 const seed=0)
 
u32 const Generate ()
 
void Seed (u32 const seed)
 
- Public Member Functions inherited from IRandomGenerator
u32 const Generate (u32 const max)
 
u32 const Generate (u32 const min, u32 const max)
 
f32 const Generatef32 (u32 const modulus=100000)
 
f32 const Generatef32 (f32 const max, u32 const modulus=100000)
 
f32 const Generatef32 (f32 const min, f32 const max, u32 const modulus=100000)
 
f64 const Generatef64 (u32 const modulus=100000)
 
f64 const Generatef64 (f64 const max, u32 const modulus=100000)
 
f64 const Generatef64 (f64 const min, f64 const max, u32 const modulus=100000)
 

Detailed Description

Basic LCG implementation.

Constructor & Destructor Documentation

CLinearCongruentialGenerator::CLinearCongruentialGenerator ( u32 const  seed = 0)
inline

Member Function Documentation

u32 const CLinearCongruentialGenerator::Generate ( )
inlinevirtual

Implements IRandomGenerator.

void CLinearCongruentialGenerator::Seed ( u32 const  seed)
inlinevirtual

Implements IRandomGenerator.


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