What is the difference between Rand and Mt_rand?
What is the difference between Rand and Mt_rand? As of PHP 7.1 there is no difference at all. The reason is that, rand($min, $max) uses libc random number generator while mt_rand($min, $max) uses Mersenne Twister which is four times faster. Your answer states that mt_rand is four times faster compared to rand . Is the […]