title: how to display random stuff without overlaping
body: <p>So I am creating a game in java using awt library.</p>
  
  <p>I have created Meteoroid which will fall from top. </p>
  
  <p><strong>Problem:</strong> problem is that Meteoroid x position overlap on some of the  other meteroids. </p>
  
  <p>is there math formula to do this? </p>
  
  <pre><code>Random r = new Random();
  int maxX = WINDOW_WIDTH;
  int minX = 0;
  for (int i = 0; i &lt; 100; i++) {
       // (x, y, width, height)
       Meteoroid m = new Meteoroid(r.nextInt(maxX - minX + 1) + minX, r.nextInt(10)+0, 40, 40);
  }
  </code></pre>