gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
threadsafe_rng.hpp File Reference

A threadsafe interface to the STL random number generators. More...

#include <random>
#include "gambit/Utils/util_macros.hpp"
#include "gambit/Utils/util_types.hpp"
Include dependency graph for threadsafe_rng.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  Gambit::Utils::threadsafe_rng
 Base class for thread-safe random number generators. More...
class  Gambit::Utils::specialised_threadsafe_rng< Engine >
 Derived thread-safe random number generator class, templated on the RNG engine type. More...
class  Gambit::Random


 TODO: see if we can use this one:

Detailed Description

A threadsafe interface to the STL random number generators.

The generator to use can be chosen in the ini/yaml file with option rng: name where name is one of the following: default_random_engine Default random engine minstd_rand Minimal Standard minstd_rand generator minstd_rand0 Minimal Standard minstd_rand0 generator mt19937 Mersenne Twister 19937 generator mt19937_64 Mersene Twister 19937 generator (64 bit) ranlux24_base Ranlux 24 base generator ranlux48_base Ranlux 48 base generator ranlux24 Ranlux 24 generator ranlux48 Ranlux 48 generator knuth_b Knuth-B generator

Authors (add name and date if you modify):

Pat Scott (
2014 Dec
Andy Buckley (
2017 Jun
Ben Farmer ( 2018 Aug

Definition in file threadsafe_rng.hpp.