a platform-independent way to acquire random numbers in a specific range. More...
#include <chaos.h>


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". | |
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.
| 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] |
< Returns a pseudo-random number r, such that "low" <= r <= "high".
Definition at line 88 of file chaos.h.
References GET_32_BIT_RAND_YO.
Referenced by crypto::blowfish_crypto::generate_key(), octopi::octopus::issue_identity(), textual::string_manipulation::make_random_name(), spocket_tester::perform_test(), broadcast_spocket_tester::perform_test(), nechung_oracle::pick_random(), configuration::application_configuration::query_for_process_info(), crypto::ssl_init::random_bytes(), octopi::octopus_request_id::randomized_id(), standard_sprintf_test(), loggers::static_chaos(), test_amorph_of(), and test_recursive_locking().
| void mathematics::chaos::retrain | ( | ) | [inline] |
Definition at line 58 of file chaos.h.
References basis::environment::system_uptime().
Referenced by chaos().
1.6.3