#include <sr_math_utils.hpp>
Public Member Functions | |
| template<typename T > | |
| T | generate (T min=static_cast< T >(0), T max=static_cast< T >(1)) |
| Random_ () | |
Protected Attributes | |
| boost::uniform_real | dist |
| boost::mt19937 | gen |
This class is not supposed to be used as is: use the RandomDouble singleton instead.
Definition at line 272 of file sr_math_utils.hpp.
| sr_math_utils::Random_::Random_ | ( | ) | [inline] |
Definition at line 275 of file sr_math_utils.hpp.
| T sr_math_utils::Random_::generate | ( | T | min = static_cast<T> (0), |
| T | max = static_cast<T> (1) |
||
| ) | [inline] |
Generate a random number between min and max (or between 0 and 1 by default)
Definition at line 287 of file sr_math_utils.hpp.
boost::uniform_real sr_math_utils::Random_::dist [protected] |
Definition at line 294 of file sr_math_utils.hpp.
boost::mt19937 sr_math_utils::Random_::gen [protected] |
Definition at line 293 of file sr_math_utils.hpp.