1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // <random> 10 11 // typedef linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647> 12 // minstd_rand; 13 14 #include <random> 15 #include <cassert> 16 17 int main(int, char**) 18 { 19 std::minstd_rand e; 20 e.discard(9999); 21 assert(e() == 399268537u); 22 23 return 0; 24 } 25