News for hackers. Stuff that matters.
Re:Spot the Drowning Child (2015) by dmos62 on Thursday March 05, 2020 @08:38AM (#22493382)
Counter question. How to calculate how many tries it would take to reach a specific probability for an outcome? For example, how many times do I have to roll the dice to have 90% chance of death? Due to my field of work, I'd solve everything by bruteforce, but I wonder what a more elegant solution could be.
Re:Spot the Drowning Child (2015) by wutbrodo on Thursday March 05, 2020 @02:01PM (#22496816)
Just solve the equation above.

0.99^n = (1-0.9)

n*log(0.99) = log(0.1)

n = log(0.1)/log(0.99) = ~229