Open3D (C++ API)
0.18.0
|
#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 |
Generate uniformly distributed random integer from [low, low + 1, ... high - 1].
low | The lower bound (inclusive). |
high | The upper bound (exclusive). high must be > low . |
|
inline |
Call this to generate a uniformly distributed integer.
|
protected |