blob: e3a79364a1f5a728a067f0f45738df5b9a197942 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Howard Hinnant5b08a8a2010-05-11 21:36:01 +00003// The LLVM Compiler Infrastructure
Howard Hinnant3e519522010-05-11 19:42:16 +00004//
Howard Hinnant412dbeb2010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant3e519522010-05-11 19:42:16 +00007//
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
22int main()
23{
24 std::mt19937 e;
25 e.discard(9999);
26 assert(e() == 4123659995u);
27}