Simulating a Normal Distribution

Here we use Javascript to simulate a normal distribution with μ=0 and σ=1.

The following command is used: random number = 2*Math.rand+2*Math.rand2*Math.rand-3.

 

Enter an Integer:

Histogram for Random Numbers Drawn