PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_random.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PHOENIX_RANDOM_H__
8 #define __PHOENIX_RANDOM_H__
9 
10 // #include <inttypes.h>
11 #include <stdlib.h>
12 #include <iostream>
13 
14 unsigned int phoenix_initRandom();
15 
16 template<typename T>
17 void phoenix_setRandValue(T & val, const T & valInf, const T & valSup);
18 
19 template<typename T>
20 T phoenix_getRandValue(const T & valInf, const T & valSup);
21 
22 #include "phoenix_random_impl.h"
23 
24 #endif
25 
phoenix_random_impl.h
phoenix_getRandValue
T phoenix_getRandValue(const T &valInf, const T &valSup)
Get a random value between valInf and valSup.
Definition: phoenix_random_impl.h:31
phoenix_initRandom
unsigned int phoenix_initRandom()
Set the random seed.
Definition: phoenix_random.cpp:13
phoenix_setRandValue
void phoenix_setRandValue(T &val, const T &valInf, const T &valSup)
Set a random value between valInf and valSup.
Definition: phoenix_random_impl.h:18