device.h 347 B

1234567891011121314151617
  1. //
  2. // random_impl.h
  3. // pokemon
  4. //
  5. // Created by Sam Jaffe on 12/9/17.
  6. //
  7. #pragma once
  8. namespace engine::random {
  9. struct Device {
  10. virtual ~Device() = default;
  11. virtual int32_t inclusive(int32_t min, int32_t max) = 0;
  12. virtual uint32_t inclusive(uint32_t min, uint32_t max) = 0;
  13. virtual double exclusive(double min, double max) = 0;
  14. };
  15. }