STXXL  1.4-dev
 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 Attributes

 __pad0__: uniform(seed) { } inline value_type operator () (value_type N) const { return static_cast<value_type>(uniform() * double(N))
 
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.

Member Data Documentation

template<class UniformRGen = random_uniform_fast>
stxxl::random_number< UniformRGen >::__pad0__

Definition at line 257 of file rand.h.

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: