![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the source code of this file.
Functions | |
template<typename T > | |
T | phoenix_getRandValue (const T &valInf, const T &valSup) |
Get a random value between valInf and valSup. More... | |
unsigned int | phoenix_initRandom () |
Set the random seed. More... | |
template<typename T > | |
void | phoenix_setRandValue (T &val, const T &valInf, const T &valSup) |
Set a random value between valInf and valSup. More... | |
T phoenix_getRandValue | ( | const T & | valInf, |
const T & | valSup | ||
) |
Get a random value between valInf and valSup.
valInf | : lower value of uniform randomizer |
valSup | : upper value of uniform randomizer |
Definition at line 31 of file phoenix_random_impl.h.
References phoenix_setRandValue().
Referenced by testRandom().
unsigned int phoenix_initRandom | ( | ) |
Set the random seed.
Definition at line 13 of file phoenix_random.cpp.
Referenced by testRandom().
void phoenix_setRandValue | ( | T & | val, |
const T & | valInf, | ||
const T & | valSup | ||
) |
Set a random value between valInf and valSup.
[out] | val | : uniform random value between valInf and valSup |
valInf | : lower value of uniform randomizer | |
valSup | : upper value of uniform randomizer |
Definition at line 18 of file phoenix_random_impl.h.
Referenced by phoenix_getRandValue().