Random.h 314 B

1234567891011121314151617181920212223
  1. #ifndef RANDOM_H
  2. #define RANDOM_H
  3. class Random final {
  4. public:
  5. Random(int seed);
  6. Random();
  7. int next();
  8. int next(int min, int max);
  9. float nextFloat();
  10. private:
  11. constexpr static int N = 25;
  12. constexpr static int M = 7;
  13. void update();
  14. int data[N];
  15. int index;
  16. };
  17. #endif