Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWRandGenMRG32K3A

Module:  Essential Math   Group:  Statistics classes


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/randmrg32k3a.h>
RWRandGenMRG32K3A gen;

Description

Class RWRandMRG32K3A generates random numbers uniformly distributed over the interval [0, 1], and may be used instead of class RWRandGenerator as a template parameter to any of the distribution generators derived from abstract base class RWTRand<>. RWRandGenMRG32K3A is a combined multiple recursive generator with two components of order 3.

Unlike class RWRandGenerator, each instance of RWRandGenMRG32K3A contains and maintains its own, independent state. This can make it easier to use in some situations. The "internal state" of an instance of RWRandGenMRG32K3A consists of a seed and a series of six integers.

Public Constructors

RWRandGenMRG32K3A();
RWRandGenMRG32K3A(const RWRandGenMRG32K3A& x);
RWRandGenMRG32K3A(unsigned long seed);

Public Member Functions

unsigned 
long seed() const;
void 
restart();
void 
restart(unsigned long seed);

Public Member Operators

double 
operator()();
void 
operator=(const RWRandGenMRG32K3A& x);
bool 
operator==(const RWRandGenMRG32K3A& x) const;
bool 
operator!=(const RWRandGenMRG32K3A& x) const;
void 
printOn(std::ostream& s) const; 
void 
scanFrom(std::istream& s);
void 
restoreFrom(RWvistream&);
void 
restoreFrom(RWFile&);
void 
saveOn(RWvostream&) const;
void 
saveOn(RWFile&) const;

Related Global Operator

std::ostream& rwmathexport
operator<< (std::ostream& s, const RWRandGenMRG32K3A& rgen);
std::istream& rwmathexport
operator>> (std::istream& s, RWRandGenMRG32K3A& rgen);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.