std::discrete_distribution (3) Linux Manual Page
std::discrete_distribution – std::discrete_distribution Synopsis Defined in header<random> template <class IntType = int> (since C++ 11) class discrete_distribution; std::discrete_distribution produces random integers on the interval [0, n), where the probability of each individual integer i is defined as w i/S, that is the weight of the ith integer divided by the sum of all n weights….
