title: How do I generate a random number using the C++11 standard library
body: <p>The new C++11 Standard has a whole chapter dedicated to random number generators. But how do I perform the simplest, most common task that used to be coded like this, but without resorting to the standard C library:</p>
  
  <pre>srand((unsigned int)time(0));
  int i = rand();</pre>
  
  <p>Are there reasonable defaults for random-number engines, distributions, and seeds that one could use out of the box?</p>