summaryrefslogtreecommitdiff
path: root/src/utils/IRandomGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/IRandomGenerator.h')
-rw-r--r--src/utils/IRandomGenerator.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/utils/IRandomGenerator.h b/src/utils/IRandomGenerator.h
new file mode 100644
index 0000000..08c6f95
--- /dev/null
+++ b/src/utils/IRandomGenerator.h
@@ -0,0 +1,17 @@
+#ifndef I_RANDOM_GENERATOR_H
+#define I_RANDOM_GENERATOR_H
+
+#include <QtCore>
+
+class IRandomGenerator
+{
+public:
+ virtual ~IRandomGenerator() {}
+ virtual double getInRange_11() const = 0;
+ virtual double getInRange_01() const = 0;
+ virtual int getRand() const = 0;
+ virtual int getRand(int maxNum) const = 0;
+ virtual QByteArray getArray() const = 0;
+};
+
+#endif