This simulation solves a math problem, and runs 10,000,000 times (it takes a long time on turbo mode). If you pick a random number from 0-1, and repeat it until the sum of the random numbers is greater than 1, what is the average number of random numbers to get a sum greater than 1? In the simulation, we find that the average is approximately e.
For reference, e ≈ 2.7182818284590452353... Other ways to find e: - The sum of reciprocals of every factorial (i.e. 1/(1!) + 1/(2!) + 1/(3!) + ...) - (1+1/∞)^∞ - e^(i*pi) + 1 = 0