STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::random_number8_r Class Reference

Detailed Description

Fast uniform [0, 255] pseudo-random generator with period 2^8, random bits: 8 (one byte).

Examples:
examples/applications/skew3.cpp.

Definition at line 99 of file rand.h.

+ Collaboration diagram for stxxl::random_number8_r:

Public Types

typedef uint8 value_type
 

Public Member Functions

 m_pos (4)
 
value_type operator() ()
 Returns a random byte from [0, 255]. More...
 

Public Attributes

 __pad0__: m_rnd32(seed)
 

Private Attributes

unsigned int m_pos
 
random_number32_r m_rnd32
 
uint32 m_value
 

Member Typedef Documentation

Definition at line 106 of file rand.h.

Member Function Documentation

stxxl::random_number8_r::m_pos ( )
inline

Definition at line 109 of file rand.h.

value_type stxxl::random_number8_r::operator() ( )
inline

Returns a random byte from [0, 255].

Definition at line 113 of file rand.h.

Member Data Documentation

stxxl::random_number8_r::__pad0__

Definition at line 109 of file rand.h.

unsigned int stxxl::random_number8_r::m_pos
private

Definition at line 103 of file rand.h.

random_number32_r stxxl::random_number8_r::m_rnd32
private

Definition at line 101 of file rand.h.

uint32 stxxl::random_number8_r::m_value
private

Definition at line 102 of file rand.h.


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