title: How to use #include <random> with g++ on a Mac?
body: <p>I'm trying to compile a c++ program that I got from someone else. It's been developed on windows and g++ is giving some compile errors. One of them is with </p>
  
  <pre><code>#include &lt;random&gt;
  </code></pre>
  
  <p>Which gives the following error: <code>CandidateSolution.cpp:2:18: error: random: No such file or directory</code>. I tried to find where I can get the error.h file from but I can't find it. How can I get this to work?</p>