![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <Random.h>
Public Member Functions | |
| UniformRealGenerator (const T low=0.0, const T high=1.0) | |
| T | operator() () |
| Call this to generate a uniformly distributed floating point value. More... | |
Protected Attributes | |
| std::uniform_real_distribution< T > | distribution_ |
Generate uniformly distributed floating point values in [low, high). This class is globally seeded by utility::random::Seed(). This class is a wrapper around std::uniform_real_distribution.
Example:
|
inline |
|
inline |
Call this to generate a uniformly distributed floating point value.
Definition at line 127 of file Random.h.
References cloudViewer::utility::random::UniformRealGenerator< T >::distribution_, cloudViewer::utility::random::GetEngine(), and cloudViewer::utility::random::GetMutex().
|
protected |
Definition at line 133 of file Random.h.
Referenced by cloudViewer::utility::random::UniformRealGenerator< T >::operator()().