#27032 [Opn->Csd]: php.net/rand reads 'value', returns an integer

From: Date: Sun, 25 Jan 2004 11:10:40 +0000
Subject: #27032 [Opn->Csd]: php.net/rand reads 'value', returns an integer
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358444@lists.php.net to get a copy of this message
ID: 27032 Updated by: nlopess@php.net Reported By: trhaynes at hotmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2004-01-24 18:41:05] trhaynes at hotmail dot com Description: ------------ php.net/rand reads: "If called without the optional min, max arguments rand() returns a pseudo-random value between 0 and RAND_MAX. If you want a random number between 5 and 15 (inclusive), for example, use rand (5, 15)." However, from "int rand ( [int min, int max])" and the example given, I'm assuming that it does not give a *value*, but, more specifically, an *integer*. Perhaps the description should be changed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27032&edit=1

« previous php.doc (#969358444) next »