STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::random_number64 Struct Reference

Detailed Description

Slow and precise uniform [0, 2^64) pseudo-random generator.

Examples:
examples/algo/phonebills_genlog.cpp.

Definition at line 261 of file rand.h.

+ Collaboration diagram for stxxl::random_number64:

Public Types

typedef stxxl::uint64 value_type
 

Public Member Functions

 random_number64 (unsigned seed=0)
 
value_type operator() () const
 Returns a random number from [0, 2^64) More...
 
value_type operator() (value_type N) const
 Returns a random number from [0, N) More...
 

Public Attributes

random_uniform_slow uniform
 

Member Typedef Documentation

Definition at line 263 of file rand.h.

Constructor & Destructor Documentation

stxxl::random_number64::random_number64 ( unsigned  seed = 0)
inline

Definition at line 266 of file rand.h.

Member Function Documentation

value_type stxxl::random_number64::operator() ( ) const
inline

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

Definition at line 270 of file rand.h.

value_type stxxl::random_number64::operator() ( value_type  N) const
inline

Returns a random number from [0, N)

Definition at line 276 of file rand.h.

Member Data Documentation

random_uniform_slow stxxl::random_number64::uniform

Definition at line 264 of file rand.h.


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