|
| RandInt (const EngineType &engine, IntType imin, IntType imax) |
| Initialize the generator. More...
|
|
| RandInt (unsigned int seed, IntType imin, IntType imax) |
| Initialize the generator. More...
|
|
void | setRange (IntType imin, IntType imax) |
| Change the range over which integers are distributed to [imin, imax]. More...
|
|
void | setSeed (unsigned int seed) |
| Set the seed value for the random number generator. More...
|
|
const EngineType & | engine () const |
| Return a const reference to the random number generator. More...
|
|
IntType | operator() () |
| Return a randomly-generated integer in the current range. More...
|
|
IntType | operator() (IntType imin, IntType imax) |
| Return a randomly-generated integer in the new range [imin, imax], without changing the current range. More...
|
|
template<typename IntType = int, typename EngineType = std::mt19937>
class openvdb::OPENVDB_VERSION_NAME::math::RandInt< IntType, EngineType >
Simple random integer generator.
Thread-safe as long as each thread has its own RandInt instance
Definition at line 202 of file Math.h.