PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
main.cpp
Go to the documentation of this file.
1 
2 /***************************************
3  Auteur : Pierre Aubert
4  Mail : pierre.aubert@lapp.in2p3.fr
5  Licence : CeCILL-C
6 ****************************************/
7 
8 #include <iostream>
9 #include "phoenix_assert.h"
10 #include "phoenix_random.h"
11 
13 void testRandom(){
15 // std::cout << "testRandom : random seed = " << phoenix_initRandom() << std::endl;
16  for(size_t i(0lu); i < 100lu; ++i){
17  float randVal = phoenix_getRandValue(0.0f, 1.0f);
18 // std::cout << "i = " << i << ", randVal = " << randVal << std::endl;
19  phoenix_assert(randVal >= 0.0f && randVal < 1.0f);
20  }
21 }
22 
23 int main(int argc, char** argv){
24  testRandom();
25  return 0;
26 }
27 
28 
#define phoenix_assert(isOk)
unsigned int phoenix_initRandom()
Set the random seed.
T phoenix_getRandValue(const T &valInf, const T &valSup)
Get a random value between valInf and valSup.
int main(int argc, char **argv)
Definition: main.cpp:290
void testRandom()
Test the color.
Definition: main.cpp:13