Daily bump.
[official-gcc.git] / libstdc++-v3 / testsuite / ext / random / hypergeometric_distribution / pr60037.cc
blob1d38a2a6f5fb07445d877bd20d576cb57dd98129
1 // { dg-options "-O0" }
2 // { dg-do run { target c++11 } }
3 // { dg-require-cstdint "" }
4 // { dg-require-cmath "" }
6 #include <ext/random>
7 #include <functional>
9 void
10 hyperplot(unsigned int N, unsigned int K, unsigned int n)
12 std::mt19937 re; // the default engine
13 __gnu_cxx::hypergeometric_distribution<> hd(N, K, n);
14 auto gen = std::bind(hd, re);
15 gen();
18 int
19 main()
21 hyperplot(15, 3, 2);
22 hyperplot(500, 50, 30);
23 hyperplot(100, 20, 5);