Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When I used this algorithm, I would seed a random number generator, and if it failed to produce a result given a set of constraints, I'd increment the seed and try again up to ~1000 times or so.


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

Search: