title: how to make multiple objects bounce around in Corona sdk
body: <p>Hey guys I am new to Corona sdk and would like some help with make some balls to bounce around the screen randomly, I don't know the code for this so could someone give me a piece of code that would make the balls bounce randomly around the screen with out stopping or anything. Also when they hit the wall the ball would go in opposite direction.</p>
  
  <p>Thanks for you help I thank you a million.</p>
  
  <p>I tried this but it don't work </p>
  
  <pre><code>if(ball.x &lt; 0) then ball.x = ball.x + 3 xSpeed = -xSpeed end--Left
  if((ball.x + ball.width) &gt; display.contentWidth) then ball.x = ball.x - 3 xSpeed = -xSpeed end--Right
  if(ball.y &lt; 0) then ySpeed = -ySpeed end--Up
  </code></pre>
  
  <p>Can someone help thanks </p>