Pretty random.
Unfortunately, it is theoretically impossible to prove that the generated codes are really random. However, there is a little test devised by Bo Allen which creates a visual representation of the randomness. Because the human eye is very good at spotting patterns, this gives an impression of the randomness of the generator - the more random the image looks, the better the generator works.
![]() True random (Random.org) | ![]() Pseudo random (PHP rand() ) | ![]() This generator |
The Pseudo Random Number Generator which is used by the PHP rand() function shows some clearly defined patterns, which are essentially predictable results. The randomness created by this generator matches the randomness generated by the True Random Number Generator from Random.org.