26 return static_cast<std::mt19937 *
>(
t);
29 RandScalar::RandScalar()
31 impl =
new std::mt19937();
35 RandScalar::RandScalar(
int s) :
38 impl =
new std::mt19937;
49 std::uniform_real_distribution<double> dist(0.0, 1.0);
55 std::uniform_real_distribution<double> dist(min, max);
63 int t=(int)time(
nullptr);
std::mt19937 * implementation(void *t)
contains the definition of a Vector type
void init()
Initialize the random generator using current time (time(0)).
double get()
Generate a random number from a uniform distribution.