1

As explained by John, I tried this:

#include <boost/tr1/random.hpp>

std::tr1::mt19937 eng;  // a core engine class
std::tr1::normal_distribution<double> dist; 
for (int i = 0; i < 10; ++i)
    std::cout << dist(eng) << std::endl;

But I am getting output as -1.#IND which is a floating point exception .

What am I doing wrong?

Kaushik Acharya
  • 1,520
  • 2
  • 16
  • 25

0 Answers0