From a TODO in UnsignedInteger+Extensions: There is a public function random that takes in a CountableClosedRange of integers and returns a random int from within the range. The TODO comment suggests that this function could live as a member function on CountableClosedRange. So it would look something like:
I think to address this issue we need to:
- Start a discussion about whether we like this idea.
- Try switching the code to use the new API, with updated test coverage.
Not necessarily in that order. I think taking a stab at (2) could help inform (1).
From a TODO in UnsignedInteger+Extensions: There is a public function
randomthat takes in aCountableClosedRangeof integers and returns a random int from within the range. The TODO comment suggests that this function could live as a member function onCountableClosedRange. So it would look something like:I think to address this issue we need to:
Not necessarily in that order. I think taking a stab at (2) could help inform (1).