SNode.C
Loading...
Searching...
No Matches
utils::Random Class Reference

#include <Random.h>

Collaboration diagram for utils::Random:

Static Public Member Functions

static double getInRange (double ll, double ul)
 

Static Private Attributes

static std::random_device rd
 

Detailed Description

Definition at line 35 of file Random.h.

Member Function Documentation

◆ getInRange()

double utils::Random::getInRange ( double ll,
double ul )
static

Definition at line 32 of file Random.cpp.

32 {
33 static std::mt19937 gen(rd());
34
35 std::uniform_real_distribution<double> distr(static_cast<int>(ll), static_cast<int>(ul));
36
37 return distr(gen);
38 }
static std::random_device rd
Definition Random.h:40

References rd.

Member Data Documentation

◆ rd

std::random_device utils::Random::rd
staticprivate

Definition at line 40 of file Random.h.

Referenced by getInRange().


The documentation for this class was generated from the following files: