title: Why does random() not work in windows?
body: <p>Why does the C++ <code>random()</code> command not work on Windows? I made a running program with the <code>random()</code> command on Ubuntu. This command generates a random integer. Online there isn't much to find about this command. What confuses me is that the code is not altered in any way, and the same program is used on both operating systems to run the code. </p>
  
  <p>Is there any structural difference in these 2 operating systems that prohibits the command from working on one of them? </p>
  
  <p>simple code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
      int r = 0;
      for (int i=0; i&lt;25; i++){
          r = random();
          cout &lt;&lt; r &lt;&lt;endl;
  
      }
  }
  </code></pre>