Skip to content

Files

Latest commit

ad53b0a · May 4, 2020

History

History

random

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 16, 2019
May 4, 2020

Helper class for wrapping generator and distribution inside a single class.

randomnumbergenerator.h

I find it annoying to have to explicitly declare both the generator and the distribution, so I wrapped it up in a class. Templated on value type, distribution type and generator type; has reasonable default distribution std::uniform_int_distribution and generator std::mt19937_64.