Returns an evenly distributed random unsigned integer 0 <= i < less_than
. This function assumes that the underlying fillFn
produces evenly distributed values. Within this assumption, the runtime of this function is exponentially distributed. If fillFn
were backed by a true random generator, the runtime of this function would technically be unbounded. However, if fillFn
is backed by any evenly distributed pseudo random number generator, this function is guaranteed to return. If you need deterministic runtime bounds, use uintLessThanBiased
.