|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_MATH_RANDOM_H_
2 #define GENESIS_UTILS_MATH_RANDOM_H_
106 #endif // include guard
void permuted_congruential_generator_init(uint64_t seed)
Set the seed for permuted_congruential_generator().
bool permuted_congruential_generator_bool()
Fast random number generator for 32bit integers, for bool with 0.5 probability.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::vector< size_t > select_without_replacement(size_t const k, size_t const n)
Select k many unique numbers out of the range [ 0, n ).
uint32_t permuted_congruential_generator()
Fast random number generator for 32bit integers.