Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes
stxxl::random_uniform_slow Struct Reference

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

#include <rand.h>

List of all members.

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)

Public Attributes

unsigned short state48 [3]

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 103 of file rand.h.


Member Typedef Documentation

Definition at line 105 of file rand.h.


Constructor & Destructor Documentation

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

Definition at line 121 of file rand.h.

References stxxl::get_next_seed().


Member Function Documentation

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

Returns a random number from [0.0, 1.0)

Definition at line 133 of file rand.h.


Member Data Documentation

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

Definition at line 119 of file rand.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines