You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef RANDOM_H
|
|
#define RANDOM_H
|
|
|
|
#include <random>
|
|
|
|
inline double randomN()
|
|
{
|
|
static std::uniform_real_distribution<double> distribution (0.0, 1.0);
|
|
static std::mt19937 generator;
|
|
return distribution(generator);
|
|
}
|
|
|
|
#endif // RANDOM_H
|
|
|