mathematics::chaos Class Reference

a platform-independent way to acquire random numbers in a specific range. More...

#include <chaos.h>

Inheritance diagram for mathematics::chaos:
Inheritance graph
[legend]
Collaboration diagram for mathematics::chaos:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 chaos ()
virtual ~chaos ()
 DEFINE_CLASS_NAME ("chaos")
void retrain ()
int inclusive (int low, int high) const
 < Returns a pseudo-random number r, such that "low" <= r <= "high".
int exclusive (int low, int high) const
 < Returns a pseudo-random number r, such that "low" < r < "high".

Detailed Description

a platform-independent way to acquire random numbers in a specific range.

This object also re-seeds the underlying system's random seed when retrain() is invoked.

Definition at line 50 of file chaos.h.


Constructor & Destructor Documentation

mathematics::chaos::chaos (  )  [inline]

Definition at line 53 of file chaos.h.

References retrain().

virtual mathematics::chaos::~chaos (  )  [inline, virtual]

Definition at line 54 of file chaos.h.


Member Function Documentation

mathematics::chaos::DEFINE_CLASS_NAME ( "chaos"   ) 
int mathematics::chaos::exclusive ( int  low,
int  high 
) const [inline]

< Returns a pseudo-random number r, such that "low" < r < "high".

Definition at line 98 of file chaos.h.

References GET_32_BIT_RAND_YO.

int mathematics::chaos::inclusive ( int  low,
int  high 
) const [inline]
void mathematics::chaos::retrain (  )  [inline]

Definition at line 58 of file chaos.h.

References basis::environment::system_uptime().

Referenced by chaos().


The documentation for this class was generated from the following file:
Generated on Sat Jan 28 04:25:42 2012 for hoople2 project by  doxygen 1.6.3