title: How to generate band-limited random noise with flat spectrum?
body: <p>How can I generate 500 ms worth of noise sampled at 1280 Hz, with a flat frequency distribution between 0.1 - 640 Hz and normally distributed amplitude values?</p>
  
  <p>See the screenshot below for an illustration of the desired output.</p>
  
  <p><a href="https://i.stack.imgur.com/Iwpys.png" rel="nofollow noreferrer">Timeplot of waveform, frequency distribution, and histogram of amplitudes</a></p>