He was probably looking for an "alternative" solution, such as
$heads=(microtime() % 2) :-)
Bogdan
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
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.
'php rand'
http://www.alt-php-faq.org/local/90/
Other details in PHP manual, Mathematical functions section.
--
PHP Gener
I'm trying to make a random number kind of a coin toss,
heads = 1 = left
tales = 2 = right
any solutions
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
3 matches
Mail list logo