Hacker News new | ask | show | jobs
by TrayKnots 448 days ago
Interesting point. But I usually prefer `(lower..upper).choose()`. So, if I want it inclusive, I can simply do `(lower..=upper).choose()`. No downcasting required. And perfectly obvious behaviour thanks to a known API.