Many, many more comments
This commit is contained in:
@@ -5,13 +5,18 @@
|
||||
#include <memory>
|
||||
#include <random>
|
||||
|
||||
// class to handle a random generator object
|
||||
class RandomNumbers {
|
||||
public:
|
||||
// Constructor: takes the seed for the random engine
|
||||
RandomNumbers(int seed);
|
||||
|
||||
// draw a uniformly distributed integer number between min, max
|
||||
int rollUniform(int min, int max);
|
||||
// draw a uniformly distributed double number between min, max
|
||||
double rollUniform(double min, double max);
|
||||
|
||||
// getter for the pointer to the mersenne twister 19937 engine
|
||||
std::mt19937* engine();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user