1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi"). 5 #ifndef CPPX_NO_FIX_OF_RANDOM_DEVICE 7 # undef _GLIBCXX_USE_RANDOM_TR1 8 # define _GLIBCXX_USE_RANDOM_TR1 18 default_random_engine, random_device, uniform_real_distribution
24 static random_device the_entropy_source;
25 return the_entropy_source();
28 template<
unsigned value >
43 template<
class Seeding >
48 -> default_random_engine&
50 static default_random_engine the_generator( invoke( []() ->
unsigned 52 const Seeding the_seeder;
62 static uniform_real_distribution the_distribution;
auto operator()() const -> unsigned
CPPX_USE_STD(invoke, default_random_engine, random_device, uniform_real_distribution)
static auto next() -> double
Macros for generating more concise and clear using statements, primarily $use_cppx and $use_std,...
static auto bits_generator() -> default_random_engine &
auto operator()() const -> unsigned
auto hardware_entropy() -> unsigned