Scopira
20080306
|
#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 |
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