title: Generate 10 random numbers from 1 to 100 using array
body: <p>This is what i got so far:</p>
  
  <pre><code>using namespace std;
  
  int main() {
  
      int i = 0;
      srand(time(0));
      int array[10], i;
      for(int i=0; i&lt;100; i++) : 
          [i] = rand()%100+1; 
      }
      return 0;
  }
  </code></pre>
  
  <p>However, i am very confuse about array and i dont understand how to generate random number without duplication with array.</p>