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

You have a coin which is weighted, so it comes up heads 70% of the time and tails only 30%. Or worse yet, perhaps you don't even know what frequency it comes up heads.

Given such a coin, and nothing else, how can you simulate a fair single coin flip?



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

Search: