title: Numpy statistics, creating an array with certain statistics properties
body: <p>If I have some numpy array, I can measure its mean, median, standard deviation, and so on with numpy routines, <a href="http://docs.scipy.org/doc/numpy/reference/routines.statistics.html" rel="nofollow">http://docs.scipy.org/doc/numpy/reference/routines.statistics.html</a></p>
  
  <p>For example, for array <code>arr</code>, I would run</p>
  
  <pre><code>import numpy as np
  print np.mean(arr) # prints the mean
  print np.median(arr) # prints the median
  </code></pre>
  
  <p>However, for my purposes, instead of measuring the statistical properties after an array is created, I would like to create an array with data of distinct statistical properties. </p>
  
  <p>So, for example, I would like to create an array shaped <code>(1000,)</code> of mean <code>2.5</code>, variance <code>10</code>, data points i.i.d. such that they are Gaussian draws, etc. </p>
  
  <p>How could one do this with numpy? </p>