C++: generate gaussian distribution

后端 未结 4 1824
囚心锁ツ
囚心锁ツ 2020-12-06 12:28

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.

Than

4条回答
  •  一向
    一向 (楼主)
    2020-12-06 12:45

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

提交回复
热议问题