STXXL  1.4.1
 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).


Definition at line 97 of file rand.h.

+ Collaboration diagram for stxxl::random_number8_r:

Public Types

typedef uint8 value_type

Public Member Functions

 random_number8_r (unsigned seed=0)
value_type operator() ()
 Returns a random byte from [0, 255]. More...

Private Attributes

unsigned int m_pos
random_number32_r m_rnd32
uint32 m_value

Member Typedef Documentation

Definition at line 104 of file rand.h.

Constructor & Destructor Documentation

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

Definition at line 106 of file rand.h.

Member Function Documentation

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

Returns a random byte from [0, 255].

Definition at line 111 of file rand.h.

Member Data Documentation

unsigned int stxxl::random_number8_r::m_pos

Definition at line 101 of file rand.h.

random_number32_r stxxl::random_number8_r::m_rnd32

Definition at line 99 of file rand.h.

uint32 stxxl::random_number8_r::m_value

Definition at line 100 of file rand.h.

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