gsmith wrote:We are going to flip a coin until we get three heads in a row!
It took 36715 flips!
It took 459 flips!
It took 24909 flips!
It took 1821 flips!
It took 916 flips!
But this is only "the first try". Now close the browser, probably shut down Apache, restart Apache, start your Browser and then try again. As far as I understood, then the number of flips behave in the same way as in your example. I also took a while to understand this issue, the question does not imply that everytime the number of flips is the same, but it seems that the sequence of occurences is repeating. I cannot reproduce that behaviour, but it may also differ for PHP as module or PHP as CGI standalone linked executable. I dont know.
Anyway, using srand() with a unique number (timestamp or so) in the beginning *should* lead to really random behaviour. Unfortunately we get no feedback from mishamax.