title: Python : Generate normal distribution in the order of the bell
body: <p>I want to generate normal distribution in the order of the bell.
  I used this code to generate the numbers:</p>
  
  <pre><code>import numpy as np
  
  mu,sigma,n = 0.,1.,1000
  
  def normal(x,mu,sigma):
      return ( 2.*np.pi*sigma**2. )**-.5 * np.exp( -.5 * (x-mu)**2. / sigma**2. )
  
  x = np.random.normal(mu,sigma,n) #generate random list of points from normal distribution
  y = normal(x,mu,sigma) #evaluate the probability density at each point
  x,y = x[np.argsort(y)],np.sort(y) #sort according to the probability density
  </code></pre>
  
  <p>which is a code proposed in : <a href="https://stackoverflow.com/questions/39675085/generating-normal-distribution-in-order-python-numpy">Generating normal distribution in order python, numpy</a></p>
  
  <p>but the numbers are not following the bell form.
  Any ideas?
  Thank you very much</p>