Random number generation in c++ using GMP
<p>In java random number can get like</p>

<pre><code>protected final static Random RANDOM = new Random(System.currentTimeMillis()); 
</code></pre>

<p>In c++ using GMP Library how it possible to generate random number?</p>

<p>I used code like</p>

<pre><code>    gmp_randstate_t s;
unsigned long seed;
seed = time(NULL); 
gmp_randinit_default(s);
gmp_randseed_ui(s, seed);

mpz_class ran;
gmp_randclass rr(s);
ran =rr.get_z_bits(125);
long int random=ran.get_ui();
</code></pre>

<p>But i dont get random number.</p>

<p>Please help me.</p>
