Hacker News new | past | comments | ask | show | jobs | submit login

I don't think so.

If you want a number in 1..3, and the generator provides numbers from 1..4, and you want a cap n, then you could model it as a generator that provides numbers in 1..4^n. There's never a way to split that space into three equal parts.

You always end up with unwanted extra possibilities that you still need to handle somehow.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: