CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
Random.hpp
1
/*
2
* (c) Copyright 2023 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 <random>
12
13
#include <corsika/framework/random/RNGManager.hpp>
14
15
namespace
fluka
{
19
double
rndm_interface() {
20
static
corsika::default_prng_type& rng =
21
corsika::RNGManager<>::getInstance
().
getRandomStream
(
"fluka"
);
22
static
std::uniform_real_distribution<double> dist;
23
return
dist(rng);
24
}
25
26
}
// namespace fluka
fluka
Definition:
Random.hpp:15
corsika::RNGManager
Definition:
RNGManager.hpp:26
corsika::RNGManager::getRandomStream
prng_type & getRandomStream(string_type const &streamName)
corsika
modules
fluka
Random.hpp
Generated by
1.8.13