title: std::default_random_engine generate values between 0.0 and 1.0
body: <p>I want to be able to generate random values between 0.0 and 1.0 </p>
  
  <p>I've tried to use </p>
  
  <pre><code>std::default_random_engine generator;
  std::uniform_real_distribution&lt;float&gt; distribution(0.0, 1.0);
  
  float myrand = distribution(generator);
  </code></pre>
  
  <p>Generating random value in a loop gives me always these values:</p>
  
  <pre><code>0.000022
  
  0.085032
  
  0.601353
  
  0.891611
  
  0.967956
  
  0.189690
  
  0.514976
  
  0.398008
  
  0.262906
  
  0.743512
  
  0.089548
  </code></pre>
  
  <p>What can I do to really get random values?
  Doesn't seem that random if I always get the same ones.</p>