|
Open3D (C++ API)
0.19.0
|
Public Member Functions | |
| RandomContext (RandomContext const &)=delete | |
| void | operator= (RandomContext const &)=delete |
| void | Seed (const int seed) |
| Seed the random number generator (globally). More... | |
| std::mt19937 * | GetEngine () |
| std::mutex * | GetMutex () |
| Get global singleton mutex to protect the engine call. More... | |
Static Public Member Functions | |
| static RandomContext & | GetInstance () |
| Returns the singleton instance. More... | |
Global thread-safe singleton instance for random generation. Generates compiler/OS/device independent random numbers.
|
delete |
|
inline |
This is used by other downstream random generators. You must also lock the GetMutex() before calling the engine.
|
inlinestatic |
Returns the singleton instance.
|
inline |
Get global singleton mutex to protect the engine call.
|
delete |
|
inline |
Seed the random number generator (globally).