21 std::srand(useSeed ?
RandomSeed : (
int)time(0));
40 static double Get(
double l = 0.0,
double r = 1.0) {
43 std::random_device rd;
44 std::mt19937 gen{ rd() };
45 std::uniform_real_distribution<> dist(l, r);
static int RandomSeed
Definition: Random.h:10
static bool TimeInitialized
Definition: Random.h:9
static void InitTime(bool useSeed=true)
Definition: Random.h:20
static vec4< T > Get(double l=0.0, double r=1.0)
Definition: Random.h:80
static double Get(double l=0.0, double r=1.0)
Definition: Random.h:40
static vec2< T > Get(double l=0.0, double r=1.0)
Definition: Random.h:56
static void SetSeed(int seed)
Definition: Random.h:30
static vec3< T > Get(double l=0.0, double r=1.0)
Definition: Random.h:68