Utility functions

API: Utility functions
API

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.
double dblrand (cRNG *rng)
 Produces a random double in the range [0,1) using the RNG given with its index.

Description

Utility functions.

Function Documentation

◆ intrand()

uint32_t 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 dblrand ( cRNG * rng)
inline

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

References cRNG::doubleRand().