Hi everyone,
hope someone could help me... I'm using Boost Libraries 1.34.0 (actually
Boost.Random only) in a VS2005 VC++ project. I've read the behaviour of these
libraries on this platform at
http://tinyurl.com/38pbp2
and all results on machines using this compiler are marked "pass", so it
should work... But not for me, and I cannot really find why.
Here is the code (more or less), cut'n'pasted from all around the project
//begin code
#include //commenting this line is uninfluential
#include
#include
#include
#include
#include
boost::mt19937 Engine_Int;
boost::lagged_fibonacci19937 Engine_Double;
boost::uniform_int< > Uniform( 0, RAND_MAX );
boost::variate_generator< boost::mt19937&, boost::uniform_int< > >
MyRand( Engine_Int, Uniform );
boost::normal_distribution< > Gaussian( 20, sqrt( (double) 20) );
boost::variate_generator< boost::lagged_fibonacci19937&,
boost::normal_distribution< > >
MyGaussianRand( Engine_Double, Gaussian );
unsigned SeedGenerator( unsigned uSeed )
{
Engine_Int.seed( (boost::mt19937::result_type) uSeed );
Engine_Double.seed( uSeed );
return( uSeed );
}
int main( ) {
//do something...
return EXIT_SUCCESS
}
//end code
Does someone have a guess?
Thanks a lot
Gabriele