|
|
|
@ -8,7 +8,7 @@ This repo contains a list of utils that will probably need to be implimented for
|
|
|
|
|
template<typename number_t, typename = std::enable_if_t<std::is_arithmetic_v<number_t>, number_t>>
|
|
|
|
|
number_t generate_random_number(const number_t minimum, const number_t maximum)
|
|
|
|
|
{
|
|
|
|
|
using uniform_distribution_t = std::conditional_t<std::is_integral_v<number_t>, std::uniform_int_distribution<number_t>, std::uniform_real_distribution<>>;
|
|
|
|
|
using uniform_distribution_t = std::conditional_t<std::is_integral_v<number_t>, std::uniform_int_distribution<number_t>, std::uniform_real_distribution<number_t>>;
|
|
|
|
|
|
|
|
|
|
std::random_device random_device;
|
|
|
|
|
|
|
|
|
|