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
rand()
mt_rand()
If you don't like PHP's built in rand(), you probably shouldn't use their built-in shuffle() either, since it seems to be built on their rand().
shuffle()
I am halfway sure the "industry standard" shuffle now is the Fisher-Yates shuffle.