title: SRAND() is not working in codeblocks?
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;ctime&gt;
  using namespace std;
  
  
  int main ()
  {
      srand(5);
  
      int r = rand() % 100
  
      cout &lt;&lt; r &lt;&lt; endl;
  }
  </code></pre>
  
  <p>codeblocks throwing this error back saying i didn't declare srand or rand when i need them to just generate random numbers? I know it returns the same nmber everytime as i am learning cpp rn.</p>