Re: [PHP] I need a random number eather one or two

2002-02-23 Thread Bogdan Stancescu
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

Re: [PHP] I need a random number eather one or two

2002-02-23 Thread Duncan Hill
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

[PHP] I need a random number eather one or two

2002-02-23 Thread Philip J. Newman
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