OMNeT++ Simulation Library  6.0.3
Utility functions

Description

Utility functions.

Functions

uint32_t intrand (cRNG *rng, uint32_t r)
 Produces a random integer in the range [0,r) using the RNG given with its index. More...
 
double dblrand (cRNG *rng)
 Produces a random double in the range [0,1) using the RNG given with its index. More...
 

Function Documentation

◆ intrand()

uint32_t omnetpp::intrand ( cRNG rng,
uint32_t  r 
)
inline

Produces a random integer in the range [0,r) using the RNG given with its index.

References cRNG::intRand().

◆ dblrand()

double omnetpp::dblrand ( cRNG rng)
inline

Produces a random double in the range [0,1) using the RNG given with its index.

References cRNG::doubleRand().