title: Unsized object error with numpy.random.permutation?
body: <p>I have some code right now that is getting stuck on one line:</p>
  
  <pre><code>perm = numpy.random.permutation(128)
  </code></pre>
  
  <p>To which it give the following error: "TypeError: len() of unsized object." I can't figure out what the issue is since 128 is just an integer. I see that this is a problem that has probably been resolved before here: <a href="http://mail.scipy.org/pipermail/numpy-discussion/2007-January/025592.html" rel="nofollow">http://mail.scipy.org/pipermail/numpy-discussion/2007-January/025592.html</a> but their solution isn't helpful to me since it is about floats.</p>
  
  <p>Can anyone see what's going wrong here?</p>