PHP\'s rand()
function doesn\'t give good random numbers. So I started to use mt_rand()
which is said to give better results. But how good are thes
I wrote a cronjob that gets 1000 numbers from random.org periodically (say, once an hour) and added them into a PHP array. Whenever I want random numbers in my script, I use mt_rand(0,1000) to call a number from that. A few extra microseconds of overhead, but I get truly random numbers based on natural atmospheric noise.