MeasureCalc: Added "UniqueRandom" option. When "1", random numbers are only used once within the range {LowBound, HighBound}.

Also updated the URNG (Uniform Random Number Generator) engine to the C++11 library <random>.
This commit is contained in:
Brian Ferguson
2013-08-15 18:12:36 -06:00
parent 61bcb92dee
commit f414b5feba
2 changed files with 84 additions and 18 deletions

View File

@ -20,6 +20,7 @@
#define __MEASURECALC_H__
#include "Measure.h"
#include <random>
class MeasureCalc : public Measure
{
@ -46,8 +47,14 @@ private:
int m_HighBound;
bool m_UpdateRandom;
bool m_UniqueRandom;
static bool c_RandSeeded;
std::vector<int> m_UniqueNumbers;
void UpdateUniqueNumberList();
// Uniform Random Number Generator
std::default_random_engine m_Engine;
std::uniform_int_distribution<int> m_Distrubtion;
};
#endif