WOLFRAM|DEMONSTRATIONS PROJECT

Getting e from Randomness

​
trials
1000
seed random
In a running average, the sum of
n
trials is divided by
n
. If you select
k
real numbers between 0 and 1 until the total exceeds 1, the running average of
k
approaches
e≈2.71828…
, shown here as a solid purple line.