Random generator between two bounds using realistic_distribution.
This generator produces random values between two bounds (inclusive) using a realistic distribution. The realistic distribution aims to provide a more uniform coverage of the range by avoiding too many extreme values.
- Template Parameters
-
| Mx | Type of the upper bound |
| Mn | Type of the lower bound |
#define TTS_MAIN
#include <tts/tts.hpp>
#include <array>
(std::array<float, 10>, std::array<int, 7>, double),
{
if constexpr(std::is_arithmetic_v<T>)
{
}
else
{
for(std::size_t
i = 0;
i <
args.size(); ++
i)
{
}
}
};
#define TTS_LESS_EQUAL(LHS, RHS,...)
Performs less-or-equal-than comparison between two expressions.
Definition relation.hpp:218
#define TTS_GREATER_EQUAL(LHS, RHS,...)
Performs greater-or-equal-than comparison between two expressions.
Definition relation.hpp:239
#define TTS_CASE_WITH(ID, TYPES,...)
Introduces a template test case providing dynamically generated data to the test code.
Definition case.hpp:201
Random generator between two bounds using realistic_distribution.
Definition generator.hpp:281