PHP rand() vs. random_int() : <p>As <a href="http://php.net/manual/en/function.random-int.php" rel="noreferrer">php.net indicates:</a> <code>random_int()</code> function <em>Generates cryptographically secure pseudo-random integers</em>.</p>

<p>But, Can someone explain whats the difference between <code>rand()</code> &amp; <code>random_int()</code>? Can I use <code>random_int()</code> instead of <code>rand()</code> when only requiring a random integer? Which one is faster?</p>
