$search

sr_math_utils::Random_ Class Reference

#include <sr_math_utils.hpp>

List of all members.

Public Member Functions

template<typename T >
generate (T min=static_cast< T >(0), T max=static_cast< T >(1))
 Random_ ()
 ~Random_ ()

Protected Attributes

boost::uniform_real dist
boost::mt19937 gen

Detailed Description

This class is not supposed to be used as is: use the RandomDouble singleton instead.

Definition at line 287 of file sr_math_utils.hpp.


Constructor & Destructor Documentation

sr_math_utils::Random_::Random_ (  )  [inline]

Definition at line 290 of file sr_math_utils.hpp.

sr_math_utils::Random_::~Random_ (  )  [inline]

Definition at line 295 of file sr_math_utils.hpp.


Member Function Documentation

template<typename T >
T sr_math_utils::Random_::generate ( min = static_cast<T>(0),
max = static_cast<T>(1) 
) [inline]

Generate a random number between min and max (or between 0 and 1 by default)

Returns:

Definition at line 306 of file sr_math_utils.hpp.


Member Data Documentation

boost::uniform_real sr_math_utils::Random_::dist [protected]

Definition at line 313 of file sr_math_utils.hpp.

boost::mt19937 sr_math_utils::Random_::gen [protected]

Definition at line 312 of file sr_math_utils.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


sr_utilities
Author(s): Ugo Cupcic
autogenerated on Sat Mar 2 13:58:24 2013