#include <random.h>
Static Public Member Functions | |
| void | seed (int s) |
| int | seed_heuristically () |
| int | random () |
| double | uniform () |
| double | uniform (double r) |
| double | uniform (double a, double b) |
| double | exponential () |
| int | integer (int k) |
| double | exponential (double r) |
| double | pareto (double scale, double shape) |
| double | paretoII (double scale, double shape) |
| double | normal (double avg, double std) |
| double | lognormal (double avg, double std) |
Static Private Member Functions | |
| 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(), 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().
|
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(), MobileNode::random_direction(), Mac802_11::send(), 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().
|
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(), TcpAgent::output(), and QSNewRenoTcpAgent::output().
|
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:

|
Here is the call graph for this function:

1.3.3