UniformRandomInteger< T > Class Template Reference
[Functor: UniformRandom]

Implementation for integer types. More...

#include <UniformRandom.h>

Inheritance diagram for UniformRandomInteger< T >:
UniformRandomBase

List of all members.

Public Types

typedef T Number
 The number type.
typedef void argument_type
 Since this is a generator, the argument type is void.
typedef Number result_type
 The result type is the number type.

Public Member Functions

 UniformRandomInteger ()
 Default constructor.
 UniformRandomInteger (const Number min, const Number max)
 Construct from the range of values.
 UniformRandomInteger (const Number min, const Number max, const unsigned int n)
 Construct from the range of values and a seed.
 UniformRandomInteger (const UniformRandomInteger &x)
 Copy constructor.
UniformRandomIntegeroperator= (const UniformRandomInteger &other)
 Assignment operator.
 ~UniformRandomInteger ()
 Destructor.

Number min () const
 Return the lower bound of the interval.
Number max () const
 Return the upper bound of the interval.
result_type operator() () const
 Return a random number in the closed interval [min() .. max()].

Detailed Description

template<typename T>
class UniformRandomInteger< T >

Implementation for integer types.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:52 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3