He was probably looking for an "alternative" solution, such as
$heads=(microtime() % 2) :-)
Duncan Hill wrote:
>On Sun, 24 Feb 2002, Philip J. Newman wrote:
>>I'm trying to make a random number kind of a coin toss,
>>heads = 1 = left
>>tales = 2 = right
>Google is your friend.
>Other details in PHP manual, Mathematical functions section.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php