A library for working with phylogenetic and population genetic data.
v0.27.0
random.cpp File Reference
#include "genesis/utils/math/random.hpp"
#include "genesis/utils/core/options.hpp"
#include <cassert>
#include <random>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::vector< size_t > select_without_replacement (size_t k, size_t n)
 Select k many unique numbers out of the range [ 0, n ). More...