STXXL  1.4-dev
 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 74 of file rand.h.

Public Types

typedef unsigned value_type
 

Public Member Functions

value_type operator() () const
 Returns a random number from [0, 2^32) More...
 
void set_seed (unsigned seed)
 Change the current seed. More...
 

Public Attributes

unsigned state
 

Member Typedef Documentation

Definition at line 76 of file rand.h.

Member Function Documentation

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

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

Definition at line 91 of file rand.h.

void stxxl::random_number32_r::set_seed ( unsigned  seed)
inline

Change the current seed.

Definition at line 85 of file rand.h.

Member Data Documentation

unsigned stxxl::random_number32_r::state
mutable

Definition at line 77 of file rand.h.


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