blob: dc4d35c700ae1a4173b32084a006f806981c9d43 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// template<class IntType = int>
// class negative_binomial_distribution
// {
// class param_type;
#include <random>
#include <limits>
#include <cassert>
int main()
{
{
typedef std::negative_binomial_distribution<> D;
typedef D::param_type param_type;
param_type p0(6, .7);
param_type p;
p = p0;
assert(p.k() == 6);
assert(p.p() == .7);
}
}