generate random long number in C++
<p>We know that to generate random long number we do following steps in Java</p>

<pre><code>Random r=new Random()
 return r.nextLong();
</code></pre>

<p>what will be equivalent of this code in C++? like this?</p>

<pre><code>return (long) rand();
</code></pre>
