C++: generate gaussian distribution

puccio picture puccio · Jul 10, 2009 · Viewed 13.1k times · Source

I would like to know if in C++ standard libraries there is any gaussian distribution number generator, or if you have any code snippet to pass.

Thanks in advance.

Answer

jalf picture jalf · Jul 10, 2009

The standard library does not. Boost.Random does, however. I'd use that if I were you.