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 General

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. 'php rand'