fn uintAtMost(r: Random, comptime T: type, at_most: T) T

Returns an evenly distributed random unsigned integer 0 <= 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_most: T,