|
AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
Source of randomness. More...
#include <anthocnet/core/ports.h>
Public Member Functions | |
| virtual | ~IRng ()=default |
| virtual double | uniform ()=0 |
| Uniform double in [0, 1). | |
| virtual int | uniformInt (int n)=0 |
| Uniform integer in [0, n). Caller guarantees n > 0. | |
Source of randomness.
All algorithm randomness routes through this so runs are reproducible from the adapter's RNG stream (the original code called the libc rand() directly).
|
virtualdefault |
|
pure virtual |
Uniform double in [0, 1).
Implemented in ns3::anthocnet::Ns3Rng, and ahn_web::Node.
|
pure virtual |
Uniform integer in [0, n). Caller guarantees n > 0.
Implemented in ns3::anthocnet::Ns3Rng, and ahn_web::Node.