fn intRangeAtMost(r: Random, comptime T: type, at_least: T, at_most: T) T

Returns an evenly distributed random integer at_least <= i <= at_most. See uintLessThan, which this function uses in most cases, for commentary on the runtime of this function.

Parameters

r: Random,
T: type,
at_least: T,
at_most: T,