#include <CNCL/FileG.h>
CN_FILEG
CNRNG
None
CNRandom
CNFileG
is a data file random number generator class. It reads
random numbers from a disk file, e.g. data from PURAN2. Thus the quality
of this generator class depends on the quality of the data files. Truely
random numbers can be generated if a good file is supplied. Here the
problem of this class can be seen. A good file must have a sufficient
size. Huge memory use and low speed can be expected when using this
class.
Constructors:
CNFileG(char *filename, bool par = FALSE);
CNFileG(CNParam *param);
CNFileG
with data file filename
and sets parity
check if required, e.g. parity check for PURAN2.
In addition to the member functions required by CNCL, CNFileG
provides:
virtual unsigned long as_long32();
virtual bool has_long32();
virtual void reset();
void newfile(char *filename, bool par = FALSE);
unsigned int wrong_parity();
Go to the first, previous, next, last section, table of contents.