ComPWA
Common Partial-Wave-Analysis Framework
Random.cpp
Go to the documentation of this file.
1 // Copyright (c) 2015, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
5 #include "Random.hpp"
6 
7 namespace ComPWA {
8 
10  : MersenneTwisterRandomGenerator(seed), UniformDistribution(0.0, 1.0),
11  Seed(seed) {}
12 
15 }
16 
17 int StdUniformRealGenerator::getSeed() const { return Seed; }
18 
20  Seed = seed;
22 }
23 
24 } /* namespace ComPWA */
void setSeed(int seed) final
Definition: Random.cpp:19
int getSeed() const final
Definition: Random.cpp:17
std::mt19937 MersenneTwisterRandomGenerator
Definition: Random.hpp:26
std::uniform_real_distribution< double > UniformDistribution
Definition: Random.hpp:27
StdUniformRealGenerator(int seed=123456)
Definition: Random.cpp:9