STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::random_number< UniformRGen_ > Struct Template Reference

Detailed Description

template<class UniformRGen_ = random_uniform_fast>
struct stxxl::random_number< UniformRGen_ >

Uniform [0, N) pseudo-random generator.

Examples:
examples/containers/stack2.cpp, and examples/containers/vector2.cpp.

Definition at line 245 of file rand.h.

+ Inheritance diagram for stxxl::random_number< UniformRGen_ >:

Public Types

typedef unsigned value_type
 

Public Member Functions

 random_number (unsigned seed=0)
 
value_type operator() (value_type N) const
 Returns a random number from [0, N) More...
 

Public Attributes

UniformRGen_ uniform
 

Member Typedef Documentation

template<class UniformRGen_ = random_uniform_fast>
typedef unsigned stxxl::random_number< UniformRGen_ >::value_type

Definition at line 247 of file rand.h.

Constructor & Destructor Documentation

template<class UniformRGen_ = random_uniform_fast>
stxxl::random_number< UniformRGen_ >::random_number ( unsigned  seed = 0)
inline

Definition at line 250 of file rand.h.

Member Function Documentation

template<class UniformRGen_ = random_uniform_fast>
value_type stxxl::random_number< UniformRGen_ >::operator() ( value_type  N) const
inline

Returns a random number from [0, N)

Definition at line 254 of file rand.h.

Member Data Documentation

template<class UniformRGen_ = random_uniform_fast>
UniformRGen_ stxxl::random_number< UniformRGen_ >::uniform

Definition at line 248 of file rand.h.


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