|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
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). | |
Static Public Attributes | |
| static constexpr auto | policy = GenerateCanonicalPolicy::std |
| By default use standard library. | |
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.
|
inline |
Generate random numbers in [0, 1).
This is the default implementation, for CPU-only code.