title: How to randomly generate turtles in netlogo that do not overlap/touch
body: <p>I am building a parking model and am having trouble when I set up my model. Users are allowed to select the number of parked cars and I currently have the program randomly generating these turtles on rounded random x-coordinates (ensuring all turtles are on only one space/patch). The problem is multiple turtles can be located on the same patch. Is there a way to create these turtles so that they do not lay on the same patch, while randomizing the x-coordinate? If not, I was envisioning a do-until type of loop to keep moving turtles forward until the patch the turtle was on had no other turtles on it. </p>
  
  <p>If the loop is the clear solution, I have never used a loop in this program, and would really benefit from seeing an example, but if that is too much to ask I'm sure I could find one posted online somewhere.</p>
  
  <pre><code>    to setup-turtles 
    ask n-of 10 patches with [pycor = -1] [
      sprout 1
    ]
    print max [count turtles-here] of patches
  
    ask turtles with [who &gt; 0]
      [set color blue
      set shape "car"
      set heading 90
      set xcor round random-xcor
      set ycor -1  ;; this ycor indicates that it is in the parking lane
      set pcolor red
      ]
  </code></pre>