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