Thank you Stephen.
This works great.
Apparently you need to shuffle the deck before you pick a number. The mt_srand command simulates this activity. I had been using the same seed value every time, by using the time function you can seed the mt_srand() function with a different value every time you load the page, (ie. this shuffles the deck or seeds the mt_srand with a new value, this cause the mt_rand function to generate a new random number).
That's my story and I'm sticking to it.
Thanks again!
Good problem solving skills Stephen, I should have thought of it myself.
Greg