title: Defining 500 initial random positions of an rotating object in 2-D by Python
body: <p>I have edited my question. Now I don't want to use loop in my function. The function is for defining initial position of an rotating object in 2-D. I would like to get the output format like this: </p>
  
  <p><code>theta1 theta2 theta3
   phi1 phi2 phi3
   eta1 eta2 eta3</code></p>
  
  <p>The definition of e inside the function must be something else (my opinion). Can anyone help me to get my desired output?</p>
  
  <pre><code>def randposi(N=500):    
      theta = 2*pi* rand()-pi
      phi = arccos(1-2* rand())
      eta = 2*pi*rand()-pi
      r = random.rand(N)
      e = 3*r*array()
      return e
  </code></pre>