Re: Bug #12550 Updated: rand() and mt_rand() don't behave as documented

From: Date: Mon, 13 Aug 2001 07:06:06 +0000
Subject: Re: Bug #12550 Updated: rand() and mt_rand() don't behave as documented
References: 1 2  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-63044@lists.php.net to get a copy of this message
On Mon, Aug 13, 2001 at 07:29:16AM +0200, Jani Taskinen wrote: > > Now you assume that you need to pass arguments to these functions. > Which is not the case. Here's the proto: > > /* {{{ proto int rand([int min, int max]) > Returns a random number */ > > So revert that patch. mt_rand() / rand() accecpt either 2 parameters or > none at all. It was at least LESS wrong before. Now it's totally wrong. > > --Jani > > p.s. Egon, you still haven't explained me why my patch was wrong? The prototype in the php[3!4] is ok, but in the PHP manual it was wrong. -Egon -- All known books about PHP and related books: http://php.net/books.php Concert Band of the University of Hohenheim: http://www.concert-band.de/ First and second bestselling book in German: http://www.php-buch.de/

« previous php.dev (#63044) next »