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

#include <distrandom.h>

Public Types

typedef UniRanGen base_type
 
typedef RealType result_type
 

Public Member Functions

 uni01_dist (base_type &rng)
 ctor
 
result_type min () const
 min
 
result_type max () const
 max
 
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

Author
Aleksander Demko

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