adevs::mtrand Class Reference

#include <adevs_rand.h>

Inheritance diagram for adevs::mtrand:
adevs::random_seq

List of all members.

Public Member Functions

 mtrand (unsigned long seed=1)
 Create a generator with an unsigned long seed.
 mtrand (const unsigned long *seed_array)
 Create a generator with an arbitrary length seed.
 mtrand (const mtrand &src)
 Copy constructor performs a deep copy.
const mtrandoperator= (const mtrand &src)
 Assignment operator does a deep copy.
void set_seed (unsigned long seed)
 Set the seed.
random_seqcopy () const
 Create a copy of this mtrand.
unsigned long next_long ()
 Get the next unsigned long value.
double next_dbl ()
 Get the next value in the range [0,1].
 ~mtrand ()
 Destructor.

Detailed Description

The mtrand class is a random number generator based on a GNU implementation of the Mersenne Twister (see mtrand.cpp for more info). Each copy of the object has its own state, and so multiple copies will produce independent random number streams.


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

Generated on 3 Jul 2013 for adevs by  doxygen 1.6.1