56 DualRand(
int rowIndex,
int colIndex);
67 void flatArray(
const int size,
double * vect);
73 void setSeeds(
const long * seeds,
int);
77 void saveStatus(
const char filename[] =
"DualRand.conf")
const;
80 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 setSeeds(const long *seeds, int)
std::vector< unsigned long > put() const
static const unsigned int VECTOR_STATE_SIZE
void restoreStatus(const char filename[]="DualRand.conf")
void setSeed(long seed, int)
void saveStatus(const char filename[]="DualRand.conf") const
void flatArray(const int size, double *vect)
virtual std::istream & get(std::istream &is)
static std::string engineName()
virtual std::istream & getState(std::istream &is)
static std::string beginTag()