Random.h 282 B

12345678910111213141516171819202122
  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. float nextFloat(float scale);
  12. private:
  13. u64 nextSeed();
  14. u64 seed;
  15. };
  16. #endif