title: Random number generation in C using Mersenne twister
body: <p>I want to generate random numbers (between 0 and 1) in c using Mersenne twister. My code is as follows:</p>
  
  <pre><code>for (i=1; i&lt;=10;i++){
    srand(time(NULL));
    a=rand();
    b=rand();
    c=rand();  
  }
  </code></pre>
  
  <p>i.e in each iteration of the for loop random numbers will be seeded with the current time and with this seed I will generate 3 random numbers between 0 and 1. How to do this using mersenne twister?</p>