Scopira 20080306

scopira::tool::uni01_dist< UniRanGen, RealType > Class Template Reference

#include <distrandom.h>

List of all members.

Public Types

typedef UniRanGen base_type
typedef RealType result_type

Public Member Functions

 uni01_dist (base_type &rng)
result_type min () const
result_type max () const
result_type operator() (void)

Static Public Attributes

static const bool has_fixed_range = true

Detailed Description

template<class UniRanGen, class RealType>
class scopira::tool::uni01_dist< UniRanGen, RealType >

random distribution of [0..1)

Because it is so commonly used: uniform distribution on the real [0..1) range. This allows for specializations to avoid a costly FP division

Aleksander Demko

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