WOLFRAM NOTEBOOK

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
e2.71828
, shown here as a solid purple line.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.