Simple generator of random numbers over the range [0, 1)
More...
#include <Math.h>
|
| | Rand01 (unsigned int seed) |
| | Initialize the generator. More...
|
| |
| FloatType | operator() () |
| | Return a uniformly distributed random number in the range [0, 1). More...
|
| |
template<typename FloatType = double, typename EngineType = boost::mt19937>
class openvdb::v2_3_0::math::Rand01< FloatType, EngineType >
Simple generator of random numbers over the range [0, 1)
Thread-safe as long as each thread has its own Rand01 instance
Initialize the generator.
- Parameters
-
| seed | seed value for the random number generator |
Return a uniformly distributed random number in the range [0, 1).
The documentation for this class was generated from the following file: