chaos Class Reference

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

#include <chaos.h>

Inheritance diagram for chaos:

Inheritance graph
[legend]
Collaboration diagram for chaos:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 IMPLEMENT_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 46 of file chaos.h.


Member Function Documentation

chaos::IMPLEMENT_CLASS_NAME ( "chaos"   ) 

void chaos::retrain (  )  [inline]

Definition at line 51 of file chaos.h.

References portable::system_uptime().

Referenced by program_wide_cleanup::program_wide_cleanup().

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

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

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

Definition at line 85 of file chaos.h.

References GET_32_BIT_RAND_YO.


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

Generated on Mon Jul 26 04:23:00 2010 for HOOPLE Libraries by  doxygen 1.5.6