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 epos {
23 
24  float rndm_interface() {
25  static corsika::default_prng_type& rng =
27  std::uniform_real_distribution<float> dist;
28  return dist(rng);
29  }
30 
31  double double_rndm_interface() {
32  static corsika::default_prng_type& rng =
34  std::uniform_real_distribution<double> dist;
35  return dist(rng);
36  }
37 
38 } // namespace epos
Definition: Random.hpp:22
prng_type & getRandomStream(string_type const &streamName)