random: clarify the intervals for 'uniform' calls

This commit is contained in:
Danny Robson 2019-04-11 11:49:16 +10:00
parent ea8416592a
commit 7b2ae1029c

View File

@ -63,7 +63,8 @@ namespace cruft::random {
/// Returns a value chosen uniformly at random the supplied range.
///
/// This is primarily a convenience helper around the uniform_distribution
/// type.
/// type. As such, the interval is the same as the std library; ie, closed
/// for integers, half-open for reals.
template <typename ValueT, typename GeneratorT>
decltype(auto)
uniform (ValueT lo, ValueT hi, GeneratorT &&gen)