Web Analytics Made
Easy - StatCounter

Distribution generators in C++

I went looking around for generators to produce normal distributions in C++. It turns out this has been a thing since C++11! and is in the std namespace. You’ll need to #include <random>. There’s also a uniform distribution, and many more. The references are great, so I will just leave them here for me to come back to when I forget the syntax:

Normal distribution ref.

Uniform distribution ref.

© Amy Tabb 2018 - 2021. All rights reserved. The contents of this site reflect my personal perspectives and not those of any other entity.