OpenVDB  2.0.0
Public Types | Public Member Functions | List of all members
Rand01< FloatType, EngineType > Class Template Reference

Simple generator of random numbers over the range [0, 1) More...

#include <Math.h>

Public Types

typedef FloatType ValueType
 

Public Member Functions

 Rand01 (unsigned int seed)
 Initialize the generator. More...
 
FloatType operator() ()
 Return a uniformly distributed random number in the range [0, 1). More...
 

Detailed Description

template<typename FloatType = double, typename EngineType = boost::mt19937>
class openvdb::v2_0_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

Member Typedef Documentation

typedef FloatType ValueType

Constructor & Destructor Documentation

Rand01 ( unsigned int  seed)
inline

Initialize the generator.

Parameters
seedseed value for the random number generator

Member Function Documentation

FloatType operator() ( )
inline

Return a uniformly distributed random number in the range [0, 1).


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