Stxxl  1.3.2
Public Types | Public Member Functions | Public Attributes | List of all members
random_number< UniformRGen_ > Struct Template Reference

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

#include <rand.h>

Inheritance diagram for random_number< UniformRGen_ >:
Inheritance graph

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

Detailed Description

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

Uniform [0, N) pseudo-random generator.

Member Function Documentation

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

Returns a random number from [0, N)

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