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

From the article: "Stated more formally: given non-negative integers k and n with k <= n"

Focus on k <= n.

Also, in the comments section in the article, the author counters a comment in favor of Python's random generator along the same lines.




He also just throws this out there: "visual inspection was enough to convince me that it [Python's sample function] was broken, without going further" -- with no explanation or in what way it is supposedly broken.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: