RNG: added additional checks (which forced an interface redesign), updated comments

This commit is contained in:
Mark Morschhäuser 2014-06-09 13:31:21 +02:00
parent 197dd0f3c8
commit ccab97ca7d
6 changed files with 65 additions and 26 deletions

View file

@ -8,7 +8,7 @@ class RNG_Abstract : public QObject {
Q_OBJECT
public:
RNG_Abstract(QObject *parent = 0) : QObject(parent) { }
virtual unsigned int getNumber(unsigned int min, unsigned int max) = 0;
virtual unsigned int rand(int min, int max) = 0;
QVector<int> makeNumbersVector(int n, int min, int max);
double testRandom(const QVector<int> &numbers) const;
};