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

Detailed Description

Fast uniform [0, 2^32) pseudo-random generator with period 2^32, random bits: 32. Reentrant variant of random_number32 that keeps it's private state.

Definition at line 76 of file rand.h.

Public Types

typedef unsigned value_type

Public Member Functions

 random_number32_r (unsigned seed=0)
value_type operator() () const
 Returns a random number from [0, 2^32) More...

Public Attributes

unsigned state

Member Typedef Documentation

Definition at line 78 of file rand.h.

Constructor & Destructor Documentation

stxxl::random_number32_r::random_number32_r ( unsigned  seed = 0)

Definition at line 81 of file rand.h.

References stxxl::get_next_seed().

Member Function Documentation

value_type stxxl::random_number32_r::operator() ( ) const

Returns a random number from [0, 2^32)

Definition at line 89 of file rand.h.

Member Data Documentation

unsigned stxxl::random_number32_r::state

Definition at line 79 of file rand.h.

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