SpECTRE
v2024.06.18

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 2element 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 2element array for the bounds for either floating point or int distributions.