Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
RandomGenerators.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  thermalfist
 The main namespace where all classes and functions of the Thermal-FIST library reside.
 
namespace  thermalfist::RandomGenerators
 Contains random generator functions used in the Monte Carlo Thermal Event Generator.
 

Functions

std::mt19937 thermalfist::RandomGenerators::rng_std (std::time(nullptr))
 
void thermalfist::RandomGenerators::SetSeed (const unsigned int seed)
 Set the seed of the random number generator randgenMT.
 
int thermalfist::RandomGenerators::RandomPoisson (double mean)
 Generates random integer distributed by Poisson with specified mean Uses randgenMT.
 
int thermalfist::RandomGenerators::RandomPoisson (double mean, MTRand &rangen)
 Same as randgenMT(double) but uses the provided instance of the Mersenne Twister random number generator.
 
double thermalfist::RandomGenerators::SkellamProbability (int k, double mu1, double mu2)
 Probability of a Skellam distributed random variable with Poisson means mu1 and mu2 to have the value of k.