Newbie alert
Hi! Here is a piece of coding. It randomly choose between four options to
display on my homepage. The problem is that it doesn't seem to be that
random - rather biased. The last option $message[3] is displayed 9 out of
10 times. Any suggestions?
script language=php
Hi Dan,
You need to call mt_srand() first to seed the random number generator. It's all
described here:
http://www.php.net/manual/en/function.mt-rand.php
Ken
* Dan Eskildsen [EMAIL PROTECTED] [010517 14:22]:
Newbie alert
Hi! Here is a piece of coding. It randomly choose