This problem clearly shows how ineffienct mt_rand() is. When tested for the number of times we get 30 heads on 30 trials. And if you perform this close to 5000 times. It never appears even once.
Hello guys! I just started learning PHP last night. Its definitely better than Haskell that I had in my first semester of college. I used arrays to make the code simple and neat.