Random.h 362 B

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