Stxxl
1.4.0
|
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. More...
#include <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) | |
Public Attributes | |
unsigned | state |
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.
typedef unsigned stxxl::random_number32_r::value_type |
stxxl::random_number32_r::random_number32_r | ( | unsigned | seed = 0 | ) | [inline] |
Definition at line 68 of file rand.h.
References stxxl::get_next_seed().
value_type stxxl::random_number32_r::operator() | ( | ) | const [inline] |
unsigned stxxl::random_number32_r::state [mutable] |