CARLA
Static Public Member Functions | Static Private Attributes | List of all members
util::Random Class Reference

#include <Random.h>

+ Collaboration diagram for util::Random:

Static Public Member Functions

static carla::geom::Location Location (float min, float max)
 
template<typename RangeT >
static void Shuffle (RangeT &range)
 
static double Uniform (double min, double max)
 

Static Private Attributes

static thread_local std::mt19937_64 _engine
 

Detailed Description

Definition at line 16 of file Random.h.

Member Function Documentation

◆ Location()

static carla::geom::Location util::Random::Location ( float  min,
float  max 
)
inlinestatic

Definition at line 24 of file Random.h.

References _engine.

◆ Shuffle()

template<typename RangeT >
static void util::Random::Shuffle ( RangeT &  range)
inlinestatic

Definition at line 30 of file Random.h.

References _engine.

◆ Uniform()

static double util::Random::Uniform ( double  min,
double  max 
)
inlinestatic

Definition at line 19 of file Random.h.

References _engine.

Member Data Documentation

◆ _engine

thread_local std::mt19937_64 util::Random::_engine
staticprivate

Definition at line 37 of file Random.h.

Referenced by Location(), Shuffle(), and Uniform().


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