title: Uniformly Distributed points on a plane are getting clustered in java, why?
body: <p>I want to generate uniformly distributed circles/points/nodes on a *100 plane. For that I am using the Random() method in java. Specifically I am doing it in in the following manner:</p>
  
  <pre><code>Random r1=new Random();
    for(int i=0;i&lt;100;i++){
    x=100*r1.nextDouble();
    y=100*r1.nextDouble();
  } 
  </code></pre>
  
  <p>But the problem is that as I run the code over and over again, the nodes are not uniformly spaced on the plane, i.e., there are clusters of concentrations and some chunks of un-occupied space. </p>
  
  <p>Any ideas, recommendations would be highly appreciated.
  The image belows shows a typical output with the clusters and the white spaces. The number of the circles are just the IDs of the circles.
  <img src="https://i.stack.imgur.com/h8TBQ.png" alt="enter image description here"></p>