Random.h 248 B

123456789101112131415161718192021
  1. #ifndef RANDOM_H
  2. #define RANDOM_H
  3. #include "common/utils/Types.h"
  4. class Random {
  5. public:
  6. Random();
  7. Random(u64 seed);
  8. u32 next();
  9. u32 next(uint bound);
  10. float nextFloat();
  11. private:
  12. u64 nextSeed();
  13. u64 seed;
  14. };
  15. #endif