1: // prng -- A psuedo random number generator. 3: #ifndef __prng__H__ 4: #define __prng__H__ 6: #include <ACG.h> 7: #include <Uniform.h> 9: class prng { 11: private: 13: const int size = 55; // the default in ACG.h, but tunable here 15: Uniform* urng; // uniform random number generator object 16: ACG* acg; // additive congruential generator object 18: prng(); // invalid default constructor 20: public: 22: prng(int seed); // constructor 24: long next(long lo, long hi); // next random integer 26: }; 28: #endif // __prng__H__