#include <iostream>
#include <functional>
#include <random>
Go to the source code of this file.
Definition at line 38 of file test_fret.cxx.
47 std::uniform_real_distribution<double> distribution(0.0,1.0);
48 std::cerr <<
"Used generator with " << distribution(generator) <<
std::endl;
50 std::cerr <<
"Copy generator with " << distribution(generator) <<
std::endl;
52 std::cerr <<
"Copy generator with " << distribution(generator) <<
std::endl;
void take_a_func(intsrc_t f)
std::default_random_engine take_a_generator(std::default_random_engine generator)
std::function< int()> intsrc_t
std::default_random_engine make_a_generator()
QTextStream & endl(QTextStream &s)
std::default_random_engine make_a_generator |
( |
| ) |
|
Definition at line 24 of file test_fret.cxx.
27 std::uniform_real_distribution<double> distribution(0.0,1.0);
QTextStream & endl(QTextStream &s)
Definition at line 19 of file test_fret.cxx.
QTextStream & endl(QTextStream &s)
std::default_random_engine take_a_generator |
( |
std::default_random_engine |
generator | ) |
|
Definition at line 31 of file test_fret.cxx.
33 std::uniform_real_distribution<double> distribution(0.0,1.0);
QTextStream & endl(QTextStream &s)