#include <random.h>
Definition at line 44 of file random.h.
Static Public Member Functions | |
| static double | exponential (double r) |
| static double | exponential () |
| static int | integer (int k) |
| static double | lognormal (double avg, double std) |
| static double | normal (double avg, double std) |
| static double | pareto (double scale, double shape) |
| static double | paretoII (double scale, double shape) |
| static int | random () |
| static void | seed (int s) |
| static int | seed_heuristically () |
| static double | uniform (double a, double b) |
| static double | uniform (double r) |
| static double | uniform () |
Static Private Member Functions | |
| static RNG * | rng () |
|
|
Definition at line 58 of file random.h. References RNG::exponential(), and rng(). 00058 { return rng()->exponential(r); }
Here is the call graph for this function: ![]() |
|
|
Definition at line 56 of file random.h. References RNG::exponential(), and rng(). Referenced by UnslottedAlohaMac::backoff(), TelnetApp::next(), SctpApp1::next(), and HyperExponentialRandomVariable::value(). 00056 { return rng()->exponential(); }
Here is the call graph for this function: ![]() |
|
|
Definition at line 57 of file random.h. References rng(), and RNG::uniform(). Referenced by MacCsma::backoff(), BackoffHandler::handle(), TcpAgent::output(), QSNewRenoTcpAgent::output(), SemanticPacketQueue::pickPacketForECN(), SemanticPacketQueue::pickPacketToDrop(), REDQueue::pickPacketToDrop(), and MacHandlerRetx::schedule().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 62 of file random.h. References RNG::lognormal(), and rng().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 61 of file random.h. References RNG::normal(), and rng(). Referenced by XCPQueue::setupTimers().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 59 of file random.h. References RNG::pareto(), and rng(). Referenced by POO_Traffic::next_interval().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 60 of file random.h. References RNG::paretoII(), and rng().
Here is the call graph for this function: ![]() |
|
|
Definition at line 52 of file random.h. References rng(), and RNG::uniform_positive_int(). Referenced by SMAC::checkToSend(), RandomCommand::command(), GetRand(), SMAC::handleCounterTimer(), Mac802_15_4::Mac802_15_4(), MobileNode::random_direction(), MacSimple::send(), CsmaCA802_15_4::start(), BackoffTimer::start(), and Mac802_11::tx_resume(). 00052 { return rng()->uniform_positive_int(); }
Here is the call graph for this function: ![]() |
|
|
Definition at line 46 of file random.h. References RNG::defaultrng(). Referenced by exponential(), integer(), lognormal(), normal(), pareto(), paretoII(), random(), seed(), seed_heuristically(), and uniform(). 00046 { return RNG::defaultrng(); }
Here is the call graph for this function: ![]() |
|
|
Definition at line 49 of file random.h. References RNG::RAW_SEED_SOURCE, rng(), and RNG::set_seed(). Referenced by RandomCommand::command(), and Marker::command(). 00049 { rng()->set_seed(RNG::RAW_SEED_SOURCE, s); }
Here is the call graph for this function: ![]() |
|
|
Definition at line 50 of file random.h. References RNG::HEURISTIC_SEED_SOURCE, rng(), RNG::seed(), and RNG::set_seed(). Referenced by RandomCommand::command(). 00050 { rng()->set_seed(RNG::HEURISTIC_SEED_SOURCE); return rng()->seed(); };
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 55 of file random.h. References rng(), and RNG::uniform().
Here is the call graph for this function: ![]() |
|
|
Definition at line 54 of file random.h. References rng(), and RNG::uniform().
Here is the call graph for this function: ![]() |
|
1.4.6