nuclear@0: #ifndef RNG_H_ nuclear@0: #define RNG_H_ nuclear@0: nuclear@0: #include nuclear@0: nuclear@0: struct RandGenState; nuclear@0: nuclear@0: class RandGen { nuclear@0: private: nuclear@0: RandGenState *state; nuclear@0: nuclear@0: RandGen(const RandGen&); nuclear@0: RandGen &operator =(const RandGen&); nuclear@0: nuclear@0: public: nuclear@0: RandGen(); nuclear@0: ~RandGen(); nuclear@0: nuclear@0: void seed(uint32_t s); nuclear@0: nuclear@0: uint32_t generate(); nuclear@0: float generate_float(); nuclear@0: }; nuclear@0: nuclear@0: void rng_srand(uint32_t s); nuclear@0: uint32_t rng_rand(); nuclear@0: float rng_frand(); nuclear@0: nuclear@0: nuclear@0: #endif // RNG_H_