Empirical
|
A versatile and non-patterned pseudo-random-number generator. More...
#include <ctime>
#include <climits>
#include <cmath>
#include <iterator>
#include <unistd.h>
#include "../base/assert.h"
#include "Range.h"
Go to the source code of this file.
Classes | |
class | emp::Random |
A versatile and non-patterned pseudo-random-number generator (Mersenne Twister). More... | |
struct | emp::RandomStdAdaptor |
This is an adaptor to make Random behave like a proper STL random number generator. More... | |
Namespaces | |
emp | |
If we are in emscripten, make sure to include the header. | |
Functions | |
template<typename ForwardIterator , typename OutputIterator , typename RNG > | |
void | emp::sample_with_replacement (ForwardIterator first, ForwardIterator last, OutputIterator ofirst, OutputIterator olast, RNG rng) |
Draw a sample (with replacement) from an input range, copying to the output range. More... | |
A versatile and non-patterned pseudo-random-number generator.