1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <random>
11 
12 // typedef mersenne_twister_engine<uint_fast32_t, 32, 624, 397, 31,
13 //                                 0x9908b0df,
14 //                                 11, 0xffffffff,
15 //                                 7,  0x9d2c5680,
16 //                                 15, 0xefc60000,
17 //                                 18, 1812433253>                      mt19937;
18 
19 #include <random>
20 #include <cassert>
21 
22 int main()
23 {
24     std::mt19937 e;
25     e.discard(9999);
26     assert(e() == 4123659995u);
27 }
28