Open3D (C++ API)
0.18.0
|
#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 |
Generate uniformly distributed floating point values in [low, high).
low | The lower bound (inclusive). |
high | The upper bound (exclusive). |
|
inline |
Call this to generate a uniformly distributed floating point value.
|
protected |