Empirical
Classes | Namespaces | Functions
ce_random.h File Reference
#include <ctime>
#include <climits>
#include <cmath>
#include <iterator>
#include <unistd.h>
#include "../tools/math.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...