mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
RNG: added additional checks (which forced an interface redesign), updated comments
This commit is contained in:
parent
197dd0f3c8
commit
ccab97ca7d
6 changed files with 65 additions and 26 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue