title: How to generate random positions with distance between them?
body: <p>Assume that I have a vector with 6 distance elements as </p>
  
  <pre><code>D = [10.5 44.8 30.01 37.2 23.4 49.1].
  </code></pre>
  
  <p>I'm trying to create random pair positions of a given distances, inside a 200 meters circle. Note that the distance D created by using <code>(b - a).*rand(6,1) + a</code>, with <code>a = 10</code> and <code>b = 50</code> in Matlab. I do not know how to generate the random pairs with given the distances. </p>
  
  <p>Could anybody help me in generating this kind of scenario?</p>