std::negative_binomial_distribution (3) - Linux Man Pages
Defined in header <random>
template< class IntType = int > (since C++11)
Produces random non-negative integer values i, distributed according to discrete probability function:
The value represents the number of failures in a series of independent yes/no trials (each succeeds with probability p), before exactly k successes occur.
std::negative_binomial_distribution satisfies RandomNumberDistribution
IntType - The result type generated by the generator. The effect is undefined if this is not one of short, int, long, long long, unsigned short, unsigned int, unsigned long, or unsigned long long.
Member type Definition
param_type the type of the parameter set, see RandomNumberDistribution.
constructor (public member function)
reset (public member function)
operator() (public member function)
p (public member function)
param (public member function)
min (public member function)
max (public member function)
operator<< (function template)
// Run this code
Weisstein,_Eric_W._"Negative_Binomial_Distribution." From MathWorld--A Wolfram Web Resource.