Rosetta
|
Random number generator system. More...
#include <numeric/random/random.hh>
#include <numeric/random/uniform.hh>
#include <numeric/random/mt19937.hh>
#include <utility/exit.hh>
#include <utility/thread/backwards_thread_local.hh>
#include <iostream>
#include <cmath>
Namespaces | |
numeric | |
Unit headers. | |
numeric::random | |
Functions | |
static THREAD_LOCAL RandomGeneratorOP | numeric::random::random_generator (nullptr) |
RandomGenerator & | numeric::random::rg () |
Return the one-per-thread "singleton" random generator. More... | |
double | numeric::random::uniform () |
Generate a random number between 0 and 1. Threadsafe since each thread uses its own random generator. More... | |
double | numeric::random::gaussian () |
Generate a random number pulled from a standard normal – i.e. mean of zero and standard deviation of 1. Threadsafe since each thread uses its own random generator. More... | |
int | numeric::random::random_range (int low, int high) |
Return a number uniformly drawn from the inclusive range between low and high. Threadsafe since each thread uses its own random generator. More... | |
uniform_RG_OP | numeric::random::createRG (string const &type) |
uniform_RG factory More... | |
Random number generator system.