blob: c7c5c1c9c9bf58b17112d93683c7cf9189e8c294 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// template<class RealType = double>
// class exponential_distribution
// {
// class param_type;
#include <random>
#include <limits>
#include <cassert>
int main()
{
{
typedef std::exponential_distribution<> D;
typedef D::param_type param_type;
param_type p0(.125);
param_type p = p0;
assert(p.lambda() == .125);
}
}