title: How to make a Round Robin? or Is there an easier way other than Round Robin?
body: <p>The problem that I face is <em><strong>in what way</strong></em> if there is issue like the example below:</p>
  
  <p>Codes 1000, 2000, 3000, 4000, 5000</p>
  
  <p>ID 1, 2, 3</p>
  
  <p>========================================</p>
  
  <p>This:</p>
  
  <p><strong>ID number 1 has codes 1000, 2000, 3000, 4000</strong></p>
  
  <p><strong>ID number 2 has codes 2000, 4000, 3000</strong></p>
  
  <p><strong>ID number 3 has codes 3000, 4000, 5000</strong></p>
  
  <p>========================================</p>
  
  <p>When all the fields are connected, each ID has found the same codes.
  From the example above, I want to produce fair result and adjusted to the code that it had before on each ID as below: (producing fair codes over the set of ID's)</p>
  
  <p>========================================</p>
  
  <p>To be:</p>
  
  <p><strong>ID number 1 has codes 1000, 2000</strong> (1000 must be on number 1 cause only it has than other)</p>
  
  <p><strong>ID number 2 has codes 3000, 4000</strong></p>
  
  <p><strong>ID number 3 has codes 5000</strong> (5000 must be on number 3 cause only it has than other)</p>
  
  <p>========================================</p>
  
  <p>Some say using <strong>Round Robin</strong>, but I never heard Round Robin before and I don't have idea how to use it, such a blank mind. 
  Is there another easier way like to use PHP may be? I'm lost.</p>
  
  <p>Thanks.</p>
  
  <p>=============================================================</p>
  
  <p><strong>Explanation</strong>:</p>
  
  <p>I'm making an application where each user has a predefined code and does not have the same code. For example user A has a range of codes between 1000-1500, the user B has a range of codes between 1600 to 2000. And user C has a range of codes between 1300-1550. As we see, the distance of a code on the C contained in the codes on the A (A -> 1000-1500, C -> 1300-1550), will certainly get duplicate between the two user.
  With this condition, how to separate and divide it to make it more fair. Let C has 1300, A has 1301, C has 1302 et cetera until 1500.</p>
  
  <p>I thought the simple example I gave before could quite understand, but it seemed like a mess, my mistake.</p>