feisty meow concerns codebase
2.140
|
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". More... | |
int | exclusive (int low, int high) const |
< Returns a pseudo-random number r, such that "low" < r < "high". More... | |
Public Member Functions inherited from basis::nameable | |
virtual const char * | class_name () const =0 |
Returns the bare name of this class as a constant character pointer. More... | |
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.
mathematics::chaos::DEFINE_CLASS_NAME | ( | "chaos" | ) |
|
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.
|
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(), nechung_oracle::pick_random(), configuration::application_configuration::query_for_process_info(), octopi::octopus_request_id::randomized_id(), standard_sprintf_test(), loggers::static_chaos(), test_amorph_of(), and test_recursive_locking().
|
inline |
Definition at line 58 of file chaos.h.
References basis::environment::system_uptime().
Referenced by chaos().