* Ali Saidi
*/
+/*
+ * Mersenne Twister random number generator has a period of
+ * 2^19937-1.
+ *
+ * The actual math is in its own file to keep the license clear.
+ */
+
#ifndef __BASE_RANDOM_HH__
#define __BASE_RANDOM_HH__
#include <ios>
#include <string>
-#include "base/range.hh"
-#include "sim/host.hh"
+#include "base/types.hh"
class Checkpoint;
return _random(min, max);
}
- template <typename T>
- T
- random(const Range<T> &range)
- {
- return _random(range.start, range.end);
- }
-
// [0,1]
double
gen_real1()