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

Whenever working with this kind of probabilities, i always throw in a python rand() as a comparison. It sanity checks the calculation of threshold with very low rist of miscalculation.

Of course calculating the threshold properly needs to be done aswell... but a rand() is so quick and simple to add as a napkin check.



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

Search: