rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Random.hh
1 // -*- C++ -*-
2 #ifndef RIVET_Random_HH
3 #define RIVET_Random_HH
4 
5 #include <random>
6 // #if defined(_OPENMP)
7 // #include "omp.h"
8 // #endif
9 
10 namespace Rivet {
11 
12 
14  mt19937& rng();
15 
17  double rand01();
18 
20  double randnorm(double loc, double scale);
21 
23  double randlognorm(double loc, double scale);
24 
25 
26 }
27 
28 #endif
Definition: ALICE_2010_I880049.cc:13
double randlognorm(double loc, double scale)
Return a log-normal sampled random number.
Definition: Random.cc:56
mt19937 & rng()
Return a thread-safe random number generator (mainly for internal use)
Definition: Random.cc:12
double rand01()
Return a uniformly sampled random number between 0 and 1.
Definition: Random.cc:39
double randnorm(double loc, double scale)
Return a Gaussian/normal sampled random number with the given mean and width.
Definition: Random.cc:47