STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::random_uniform_slow Struct Reference

Detailed Description

Slow and precise uniform [0.0, 1.0) pseudo-random generator period: at least 2^48, random bits: at least 31.

Warning
Seed is not the same as in the fast generator random_uniform_fast

Definition at line 147 of file rand.h.

Public Types

typedef double value_type
 

Public Member Functions

 random_uniform_slow (unsigned seed=0)
 
value_type operator() () const
 Returns a random number from [0.0, 1.0) More...
 

Static Public Member Functions

static void _dorand48 (unsigned short xseed[3])
 
static double _erand48 (unsigned short xseed[3])
 

Public Attributes

unsigned short state48 [3]
 

Member Typedef Documentation

Definition at line 149 of file rand.h.

Constructor & Destructor Documentation

stxxl::random_uniform_slow::random_uniform_slow ( unsigned  seed = 0)
inline

Definition at line 221 of file rand.h.

References stxxl::get_next_seed().

Member Function Documentation

static void stxxl::random_uniform_slow::_dorand48 ( unsigned short  xseed[3])
inlinestatic

Definition at line 189 of file rand.h.

static double stxxl::random_uniform_slow::_erand48 ( unsigned short  xseed[3])
inlinestatic

Definition at line 212 of file rand.h.

value_type stxxl::random_uniform_slow::operator() ( ) const
inline

Returns a random number from [0.0, 1.0)

Definition at line 233 of file rand.h.

Member Data Documentation

unsigned short stxxl::random_uniform_slow::state48[3]
mutable

Definition at line 173 of file rand.h.


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