There's a cute Randomness/next(upTo:) versus next(through:) -> T invariant when T: SystemsInteger. If we have two deterministic and identical sources of randomness, then these operations return identical results given equivalent Range<T> and ClosedRange<T> arguments. It would be nice if this invariant also held for arbitrary unsigned integers.
There's a cute
Randomness/next(upTo:)versusnext(through:) -> Tinvariant whenT: SystemsInteger. If we have two deterministic and identical sources of randomness, then these operations return identical results given equivalentRange<T>andClosedRange<T>arguments. It would be nice if this invariant also held for arbitrary unsigned integers.