title: How to change the seed in gaussian distribution (boost)
body: <p>I have found this example on  <em><a href="https://stackoverflow.com/questions/2078474/how-to-use-boost-normal-distribution-classes">How to use boost normal distribution classes?</a></em></p>
  
  <pre><code>#include &lt;boost/random.hpp&gt;
  #include &lt;boost/random/normal_distribution.hpp&gt;
  
  int main() {
      boost::mt19937 rng; // I don't seed it on purpouse (it's not relevant)
  
      boost::normal_distribution&lt;&gt; nd(0.0, 1.0);
  
      boost::variate_generator&lt;boost::mt19937&amp;, 
                          boost::normal_distribution&lt;&gt; &gt; var_nor(rng, nd);
  
      int i = 0; 
      for (; i &lt; 10; ++i) {
          double d = var_nor();
          std::cout &lt;&lt; d &lt;&lt; std::endl;
      } 
  }
  </code></pre>
  
  <p>I was wondering what I have do add to the code to generate a different random numbers each time. I am using the number called produced d in a for loop, but at every time I run the program I always obtain the same numbers. Thank you!!!!</p>