title: How do you generate a random double uniformly distributed between 0 and 1 from C++?
body: <p>How do you generate a random double uniformly distributed between 0 and 1 from C++?</p>
  
  <p>Of course I can think of some answers, but I'd like to know what the standard practice is, to have:</p>
  
  <ul>
  <li>Good standards compliance</li>
  <li>Good randomness</li>
  <li>Good speed</li>
  </ul>
  
  <p>(speed is more important than randomness for my application).</p>
  
  <p>Thanks a lot!</p>
  
  <p>PS: In case that matters, my target platforms are Linux and Windows.</p>