|
Boost Users : |
Subject: [Boost-users] [Random] Getting normal_distribution<> to work
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-07-28 12:33:15
Dear all,
When I run the following simple code, the output is "-1.#IND" in MSVC 2008 and "nan" in GCC 4.4.0. I guess that means something is not initialised yet... So, what's missing here?
boost::normal_distribution<double> gen;
boost::mt19937 engine;
double r = gen(engine);
cout << r;
TIA,
--Hossein
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net