title: C++ Simple 0-10 multiplication flashcard using rand()
body: <p>I am having trouble grasping the concept of rand() and srand() in c++. I need to create a program that displays two random numbers, have the user enter a response, then match the response with a message and do this for 5 times. </p>
  
  <p>My question is how do I use it, the instructions say I can't use the time() function and that seems to be in every tutorial online about rand().</p>
  
  <p>this is what I have so far.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;cstdlib&gt;
  
  using namespace std;
  
  int main()
  {
  
  int seed;
  int response;
  
  srand(1969);
  seed=(rand()%10+1);
  
  cout&lt;&lt;seed&lt;&lt;" * "&lt;&lt;seed&lt;&lt;" = ";
  cin&gt;&gt;response;
  cout&lt;&lt;response;
      if(response==seed*seed)
      cout&lt;&lt;"Correct!. you have correctly answered 1 out of 1."&lt;&lt;endl;
      else 
      cout&lt;&lt;"Wrong!. You have correctly answered 0 out of 1."&lt;&lt;endl;
  </code></pre>
  
  <p>This just outputs something like 6*6 or 7*7, I thought the seed variable would be not necessary different but not the same all the time?</p>
  
  <p>This is what the output should look like:</p>
  
  <pre><code>3 * 5 =
  34
  Wrongo. You have correctly answered 0 out of 1.
  8 * 1 =
  23
  Wrongo. You have correctly answered 0 out of 2.
  7 * 1 =
  7
  Correct! You have correctly answered 1 out of 3.
  2 * 0 =
  2
  Wrongo. You have correctly answered 1 out of 4.
  8 * 1 =
  8
  Correct! You have correctly answered 2 out of 5.
  
  Final Results: You have correctly answered 2 out of 5 for a 40% average.
  </code></pre>
  
  <p>and these are the requirements:</p>
  
  <p>Your program should use rand() to generate pseudo-random numbers as needed.  You may use srand() to initialize the random number generator, but please do not use any 'automatic' initializer (such as the time() function), as those are likely to be platform dependent.  Your program should not use any loops.</p>