STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rand.h File Reference
#include <cmath>
#include <stxxl/bits/config.h>
#include <stxxl/bits/common/types.h>
#include <stxxl/bits/common/seed.h>
#include <stxxl/bits/namespace.h>

Go to the source code of this file.

Classes

struct  stxxl::random_number< UniformRGen >
 Uniform [0, N) pseudo-random generator. More...
 
struct  stxxl::random_number32
 Fast uniform [0, 2^32) pseudo-random generator with period 2^32, random bits: 32. More...
 
struct  stxxl::random_number32_r
 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...
 
struct  stxxl::random_number64
 Slow and precise uniform [0, 2^64) pseudo-random generator. More...
 
class  stxxl::random_number8_r
 Fast uniform [0, 255] pseudo-random generator with period 2^8, random bits: 8 (one byte). More...
 
struct  stxxl::random_uniform_fast
 Fast uniform [0.0, 1.0) pseudo-random generator. More...
 
struct  stxxl::random_uniform_slow
 Slow and precise uniform [0.0, 1.0) pseudo-random generator period: at least 2^48, random bits: at least 31. More...
 

Namespaces

 stxxl
 STXXL library namespace
 

Functions

void stxxl::srandom_number32 (unsigned seed=0)
 Set a seed value for random_number32. More...
 

Variables

unsigned stxxl::ran32State = get_next_seed()