Celeritas
0.5.0-86+4a8eea4
|
Generate random numbers in [0, 1). More...
#include <GenerateCanonical.hh>
Public Types | |
Type aliases | |
using | real_type = RealType |
using | result_type = real_type |
Public Member Functions | |
result_type | operator() (Generator &rng) |
Generate random numbers in [0, 1). More... | |
Generate random numbers in [0, 1).
This is essentially an implementation detail; partial specialization can be used to sample using special functions with a given generator.
auto celeritas::GenerateCanonical< Generator, RealType >::operator() | ( | Generator & | rng | ) |
Generate random numbers in [0, 1).
This is the default implementation, for CPU-only code.