Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes
stxxl::random_number< UniformRGen_ > Struct Template Reference

Uniform [0, N) pseudo-random generator. More...

#include <rand.h>

Inheritance diagram for stxxl::random_number< UniformRGen_ >:
Inheritance graph
[legend]

List of all members.

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)

Public Attributes

UniformRGen_ uniform

Detailed Description

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

Uniform [0, N) pseudo-random generator.

Examples:
stream/test_sorted_runs.cpp.

Definition at line 145 of file rand.h.


Member Typedef Documentation

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

Definition at line 147 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 150 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 154 of file rand.h.


Member Data Documentation

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

Definition at line 148 of file rand.h.


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