Re: I need a random number eather one or two
| From: | Bogdan Stancescu | Date: | Sun, 24 Feb 2002 03:16:06 +0000 |
| Subject: | Re: I need a random number eather one or two | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85975@lists.php.net to get a copy of this message | ||
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 = rightGoogle is your friend. 'php rand' http://www.alt-php-faq.org/local/90/ Other details in PHP manual, Mathematical functions section.