SST/macro
Public Member Functions | List of all members
RNG::UniformInteger Class Referenceabstract

This is a base class for random number generators that return an integer uniformly distributed in a range. More...

#include <rng.h>

Inheritance diagram for RNG::UniformInteger:
Inheritance graph
Collaboration diagram for RNG::UniformInteger:
Collaboration graph

Public Member Functions

virtual ~UniformInteger ()
 
virtual rngint_t value ()=0
 
rngint_t value_in_range (rngint_t range)
 
virtual void vec_reseed (const std::vector< rngint_t > &seeds)=0
 
virtual int nseed ()=0
 
virtual double realvalue (bool include_zero=true, bool include_one=true)
 Return a random value in the interval [0,1], (0,1], [0,1), or (0,1) More...
 
void reseed ()
 
void reseed (rngint_t)
 
void reseed (rngint_t, rngint_t)
 
void reseed (rngint_t, rngint_t, rngint_t)
 
void reseed (rngint_t, rngint_t, rngint_t, rngint_t)
 

Detailed Description

This is a base class for random number generators that return an integer uniformly distributed in a range.

Definition at line 26 of file rng.h.

Constructor & Destructor Documentation

virtual RNG::UniformInteger::~UniformInteger ( )
virtual

Member Function Documentation

virtual int RNG::UniformInteger::nseed ( )
pure virtual
virtual double RNG::UniformInteger::realvalue ( bool  include_zero = true,
bool  include_one = true 
)
inlinevirtual

Return a random value in the interval [0,1], (0,1], [0,1), or (0,1)

Definition at line 48 of file rng.h.

References reseed(), and value().

Here is the call graph for this function:

void RNG::UniformInteger::reseed ( )

Referenced by realvalue().

void RNG::UniformInteger::reseed ( rngint_t  )
void RNG::UniformInteger::reseed ( rngint_t  ,
rngint_t   
)
void RNG::UniformInteger::reseed ( rngint_t  ,
rngint_t  ,
rngint_t   
)
void RNG::UniformInteger::reseed ( rngint_t  ,
rngint_t  ,
rngint_t  ,
rngint_t   
)
virtual rngint_t RNG::UniformInteger::value ( )
pure virtual
rngint_t RNG::UniformInteger::value_in_range ( rngint_t  range)
inline

Definition at line 36 of file rng.h.

References nseed(), value(), and vec_reseed().

Referenced by RNG::UniformInteger_functor::operator()().

Here is the call graph for this function:

virtual void RNG::UniformInteger::vec_reseed ( const std::vector< rngint_t > &  seeds)
pure virtual

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