RNG Class Reference

#include <rng.h>

List of all members.

Public Member Functions

 RNG (uint32_t seed=5489UL)
void Seed (uint32_t seed) const
float RandomFloat () const
unsigned long RandomUInt () const

Private Attributes

unsigned long mt [N]
int mti

Static Private Attributes

static const int N = 624

Detailed Description

Definition at line 36 of file rng.h.


Constructor & Destructor Documentation

RNG::RNG ( uint32_t  seed = 5489UL  )  [inline]

Definition at line 38 of file rng.h.

References mti, N, and Seed().


Member Function Documentation

float RNG::RandomFloat (  )  const
unsigned long RNG::RandomUInt (  )  const
void RNG::Seed ( uint32_t  seed  )  const

Definition at line 35 of file rng.cpp.

References mt, mti, and N.

Referenced by RandomUInt(), MetropolisRenderer::Render(), and RNG().


Member Data Documentation

unsigned long RNG::mt[N] [mutable, private]

Definition at line 49 of file rng.h.

Referenced by RandomUInt(), and Seed().

int RNG::mti [mutable, private]

Definition at line 50 of file rng.h.

Referenced by RandomUInt(), RNG(), and Seed().

const int RNG::N = 624 [static, private]

Definition at line 48 of file rng.h.

Referenced by RandomUInt(), RNG(), and Seed().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3