title: random number C++
body: <p>Sorry about that. My question is I'm trying to generate a random number with an input of 4 or 55 . Using srand() ranging from 0 t0 9</p>
  
  <p>here is my code so far:</p>
  
  <pre><code>using namespace std;
  
  int main() {
     int seedVal = 0;
  
    srand(seedVal); 
  
     seedVal= time(0);
  
  
  
     cout &lt;&lt; (rand () % 9) + 1 &lt;&lt; endl;
     cout &lt;&lt; (rand () % 9) + 1 &lt;&lt; endl;
  
     return 0;
  }
  </code></pre>