random: clarify the intervals for 'uniform' calls
This commit is contained in:
parent
ea8416592a
commit
7b2ae1029c
@ -63,7 +63,8 @@ namespace cruft::random {
|
|||||||
/// Returns a value chosen uniformly at random the supplied range.
|
/// Returns a value chosen uniformly at random the supplied range.
|
||||||
///
|
///
|
||||||
/// This is primarily a convenience helper around the uniform_distribution
|
/// 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>
|
template <typename ValueT, typename GeneratorT>
|
||||||
decltype(auto)
|
decltype(auto)
|
||||||
uniform (ValueT lo, ValueT hi, GeneratorT &&gen)
|
uniform (ValueT lo, ValueT hi, GeneratorT &&gen)
|
||||||
|
Loading…
Reference in New Issue
Block a user