cxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp

25 lines
545 B
C++
Raw Normal View History

//===----------------------------------------------------------------------===//
//
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// typedef minstd_rand0 default_random_engine;
#include <random>
#include <cassert>
int main()
{
std::default_random_engine e;
e.discard(9999);
assert(e() == 1043618065u);
}