CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
Random.hpp
Go to the documentation of this file.
1
/*
2
* (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
3
*
4
* This software is distributed under the terms of the GNU General Public
5
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6
* the license.
7
*/
8
9
#pragma once
10
11
#include <corsika/framework/random/RNGManager.hpp>
12
#include <random>
13
22
namespace
sibyll
{
23
24
double
rndm_interface() {
25
static
corsika::default_prng_type& rng =
26
corsika::RNGManager<>::getInstance
().
getRandomStream
(
"sibyll"
);
27
std::uniform_real_distribution<double> dist;
28
return
dist(rng);
29
}
30
31
}
// namespace sibyll
sibyll
Definition:
Random.hpp:22
corsika::RNGManager
Definition:
RNGManager.hpp:26
corsika::RNGManager::getRandomStream
prng_type & getRandomStream(string_type const &streamName)
corsika
modules
sibyll
Random.hpp
Generated by
1.8.13