Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
stxxl::random_number32 Struct Reference

Fast uniform [0, 2^32) pseudo-random generator with period 2^32, random bits: 32. More...

#include <rand.h>

List of all members.

Public Types

typedef unsigned value_type

Public Member Functions

value_type operator() () const
 Returns a random number from [0, 2^32)

Detailed Description

Fast uniform [0, 2^32) pseudo-random generator with period 2^32, random bits: 32.

Warning:
Uses a global state and is not reentrant or thread-safe!
Examples:
algo/test_ksort.cpp, algo/test_sort.cpp, algo/test_stable_ksort.cpp, containers/berkeley_db_benchmark.cpp, containers/test_map_random.cpp, containers/test_sorter.cpp, containers/test_vector.cpp, containers/test_vector_export.cpp, stream/test_loop.cpp, stream/test_push_sort.cpp, and stream/test_sorted_runs.cpp.

Definition at line 41 of file rand.h.


Member Typedef Documentation

Definition at line 43 of file rand.h.


Member Function Documentation

value_type stxxl::random_number32::operator() ( ) const [inline]

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

Definition at line 46 of file rand.h.

References stxxl::ran32State.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines