57 DualRand(
int rowIndex,
int colIndex);
68 void flatArray(
const int size,
double * vect);
74 void setSeeds(
const long * seeds,
int);
78 void saveStatus(
const char filename[] =
"DualRand.conf")
const;
81 void restoreStatus(
const char filename[] =
"DualRand.conf" );
88 operator unsigned int();
90 virtual std::ostream &
put (std::ostream & os)
const;
91 virtual std::istream &
get (std::istream & is);
93 virtual std::istream &
getState ( std::istream & is );
95 std::string
name()
const;
98 std::vector<unsigned long>
put ()
const;
99 bool get (
const std::vector<unsigned long> & v);
100 bool getState (
const std::vector<unsigned long> & v);
111 Tausworthe(
unsigned int seed);
112 operator unsigned int();
113 void put(std::ostream & os)
const;
114 void put(std::vector<unsigned long> & v)
const;
115 void get(std::istream & is);
116 bool get(std::vector<unsigned long>::const_iterator & iv);
119 unsigned int words[4];
125 IntegerCong(
unsigned int seed,
int streamNumber);
126 operator unsigned int();
127 void put(std::ostream & os)
const;
128 void put(std::vector<unsigned long> & v)
const;
129 void get(std::istream & is);
130 bool get(std::vector<unsigned long>::const_iterator & iv);
132 unsigned int state, multiplier, addend;
136 Tausworthe tausworthe;
137 IntegerCong integerCong;
void setSeed(long seed, int)
static std::string beginTag()
void saveStatus(const char filename[]="DualRand.conf") const
static const unsigned int VECTOR_STATE_SIZE
void setSeeds(const long *seeds, int)
static std::string engineName()
void restoreStatus(const char filename[]="DualRand.conf")
void flatArray(const int size, double *vect)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
std::vector< unsigned long > put() const
virtual std::istream & getState(std::istream &is)