Generate 100 normally distributed random numbers in Python
<p>I am an extreme beginner in Python and I am having a difficulty writing a very simple code.</p>

<p>I am trying to write a simple code to generate 100 normally distributed number by using the function gauss with expectation 1.0 and standard deviation 0.005, and later store in an array that can be used to calculate the mean and standard deviation from those 100 sample. </p>

<p>Here is my code:</p>

<pre><code>def uniformrandom(n):   
    i=0  
    while i&lt; n:  
        gauss(1.0, 0.005)  
        i = i + 1
    return i
</code></pre>

<p>Then I tried </p>

<pre><code>L = uniformrandom(100)
</code></pre>

<p>The code is supposed to be indented in Python but it is just when I typed in StackOverflow I didn't really know how to indent it.</p>

<p>Let say I use the formula (x1+x2+...+xn)/100 to get the mean, how can I store those numbers and use the formula to get the mean.</p>

<p>I tried the code in Python but L only prints the value n. I have little what is wrong with my code and how should I fix it.</p>

<p>If anyone could lend some help, it would be really appreciated. Thanks so much!</p>