title: Unique random number generation in an integer array
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/196017/unique-random-numbers-in-o1">Unique random numbers in O(1)?</a></p>
  </blockquote>
  
  <p>How do I fill an integer array with unique values (no duplicates) in C?</p>
  <pre><code>int vektor[10];   
  
  for (i = 0; i &lt; 10; i++) {
      vektor[i] = rand() % 100 + 1;
  }
  
  //No uniqueness here
  </code></pre>