What's the difference between rand() and mt_rand()? I read the php manual, but still can't understand the difference. Who can tell me? Thanks!😕
According to the php manual mt_rand creates a better random number.
By 'better' random number, less predictable is implied. mt_rand() also runs faster, and as of PHP 4.2.0, mt_rand() doesn't need to be 'seeded'.