|
SpECTRE
v2026.04.01
|
A uniform distribution function object which redirects appropriately to either the std::uniform_int_distribution or the std::uniform_real_distribution. This also provides a convenience constructor which takes a 2-element array for the bounds for either floating point or int distributions. More...
#include <MakeWithRandomValues.hpp>
Public Member Functions | |
| template<typename Bound> | |
| UniformCustomDistribution (std::array< Bound, 2 > arr) | |
A uniform distribution function object which redirects appropriately to either the std::uniform_int_distribution or the std::uniform_real_distribution. This also provides a convenience constructor which takes a 2-element array for the bounds for either floating point or int distributions.