title: How do I create a looping random array in php?
body: <p>Im trying to create an array with 100 random values from 1 to 1000, and multiply each by 4</p>
  
  <p>so far I have:</p>
  
  <pre><code>$numbers = array(rand(1, 1000),rand(1, 1000),rand(1, 1000),
      rand(1, 1000),rand(1, 1000),rand(1, 1000)
  
  for($x=0; $x&lt;100; $x++)
      echo $numbers[$x]*4 . "&lt;br/&gt;";
  </code></pre>
  
  <p>How do I get rand(1,1000) to repeat 100 times without copy pasting? thanks!</p>