Scopira  20080306
scopira::tool::unismallint_dist< UniRanGen, IntType > Class Template Reference

#include <distrandom.h>

Public Types

typedef UniRanGen base_type
 
typedef IntType result_type
 

Public Member Functions

 unismallint_dist (base_type &rng, IntType min, IntType max)
 ctor More...
 
result_type min (void) const
 min
 
result_type max (void) const
 max
 
result_type operator() (void)
 get next
 

Static Public Attributes

static const bool has_fixed_range = false
 

Detailed Description

template<class UniRanGen, class IntType>
class scopira::tool::unismallint_dist< UniRanGen, IntType >

uniform integer distribution on a small range [min, max]

Author
Aleksander Demko

Constructor & Destructor Documentation

◆ unismallint_dist()

template<class UniRanGen , class IntType >
scopira::tool::unismallint_dist< UniRanGen, IntType >::unismallint_dist ( base_type &  rng,
IntType  min,
IntType  max 
)

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