![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <limits>#include <random>#include <boost/math/constants/constants.hpp>#include "fwd_decl.h"
Include dependency graph for random.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | trento |
| namespace | trento::random |
Typedefs | |
| using | trento::random::Engine = std::mt19937_64 |
| Mersenne Twister engine, 64-bit preset. | |
Functions | |
| template<typename RealType = double> | |
| RealType | trento::random::canonical () |
| Helper function to easily generate random numbers in [0, 1). | |
| template<typename RealType = double> | |
| double | trento::random::cos_theta () |
| Sample a spherical polar angle cos(theta). | |
| template<typename RealType = double> | |
| double | trento::random::phi () |
| Sample a spherical azimuthal angle phi. | |