Static Public Member Functions | Static Private Attributes

LibGeoDecomp::Random Class Reference

#include <random.h>

Collaboration diagram for LibGeoDecomp::Random:
Collaboration graph

List of all members.

Static Public Member Functions

static unsigned gen_u (const unsigned max=max_rand)
static double gen_d (const double max=1.0)
static void seed (const unsigned newSeed)

Static Private Attributes

static boost::mt19937 generator
static const long long max_rand = boost::integer_traits<unsigned>::const_max

Member Function Documentation

static double LibGeoDecomp::Random::gen_d ( const double  max = 1.0  )  [inline, static]
static unsigned LibGeoDecomp::Random::gen_u ( const unsigned  max = max_rand  )  [inline, static]
static void LibGeoDecomp::Random::seed ( const unsigned  newSeed  )  [inline, static]

References generator.

Member Data Documentation

boost::mt19937 LibGeoDecomp::Random::generator [static, private]

Referenced by gen_u(), and seed().

const long long LibGeoDecomp::Random::max_rand = boost::integer_traits<unsigned>::const_max [static, private]

Referenced by gen_d().

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