Why rand() isn't really random?
Linear congruential random number generators (which is what PHP rand
uses) will always display autocorrelation effects on an x-y plot.
You will have better results with mt_rand
. This is a Mersenne Twister generator.