From Dev.to
The odds of a 1-in-N drop: the geometric distribution in a few lines of JavaScript and Python
Say something succeeds with a fixed probability p on every attempt, and each attempt is independent of the others. A rare item that drops once in 137,500 tries is a good example. How many tries do you...
