title: Speedily create a random array
body: <p>I have a for-loop:</p>
  
  <pre><code>for (i=0; i&lt;N; i++) a[i] = rand()
  </code></pre>
  
  <p>But that's too slow, and BLAS/vDSP/vecLib/etc are at my disposal. I'm looking for a function to create an array of random numbers; it seems like it should be included.</p>
  
  <p>Besides the name for this function, I would also appreciate a some good vDSP/vecLib/etc documentation. I've found <a href="https://developer.apple.com/library/Mac/DOCUMENTATION/Accelerate/Reference/AccelerateFWRef/_index.html#//apple_ref/doc/uid/TP40009465" rel="nofollow">some documentation</a>, but it's not good -- just general descriptions of the functions.</p>