Open3D (C++ API)  0.15.1
Public Member Functions | Protected Attributes
open3d::utility::UniformRandIntGenerator Class Reference

Draw pseudo-random integers bounded by min and max (inclusive) from a uniform distribution. More...

#include <Helper.h>

Public Member Functions

 UniformRandIntGenerator (const int min, const int max, std::mt19937::result_type seed=std::random_device{}())
 
int operator() ()
 

Protected Attributes

std::uniform_int_distribution< int > distribution_
 
std::mt19937 generator_
 

Detailed Description

Draw pseudo-random integers bounded by min and max (inclusive) from a uniform distribution.

Constructor & Destructor Documentation

◆ UniformRandIntGenerator()

open3d::utility::UniformRandIntGenerator::UniformRandIntGenerator ( const int  min,
const int  max,
std::mt19937::result_type  seed = std::random_device{}() 
)
inline

Member Function Documentation

◆ operator()()

int open3d::utility::UniformRandIntGenerator::operator() ( )
inline

Field Documentation

◆ distribution_

std::uniform_int_distribution<int> open3d::utility::UniformRandIntGenerator::distribution_
protected

◆ generator_

std::mt19937 open3d::utility::UniformRandIntGenerator::generator_
protected

The documentation for this class was generated from the following file: