[C++] Different output from same input ( without srand() )
Hello.. I have a problem with a C++ application.
Using the same input, on the same machine, without recompiling, I got most of the times very slightly similar results (but not the same) and sometimes quite different ones.
I use extensively the random_shuffle() STL algorithm and rand() calls but I never initialize the seed with srand().
My application use also an external library, GLPK, to perform optimisations..
Can anyone give me hits on this strange behaviour ???
cheers,
Antonello
|