Celeritas
0.5.0-56+6b053cd
|
#include <limits>
#include <random>
#include <type_traits>
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
Classes | |
class | celeritas::GenerateCanonical< Generator, RealType > |
Generate random numbers in [0, 1). More... | |
Functions | |
template<class RealType , class Generator > | |
CELER_FUNCTION RealType | celeritas::generate_canonical (Generator &g) |
Helper function to generate a random uniform number. More... | |
template<class Generator > | |
CELER_FUNCTION real_type | celeritas::generate_canonical (Generator &g) |
Sample a real_type on [0, 1). More... | |
|
inline |
Helper function to generate a random uniform number.
Helper function to generate a random real number in [0, 1).
|
inline |
Sample a real_type on [0, 1).
Helper function to generate a random real number in [0, 1).