ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] #27032 [Opn->Csd]: php.net/rand reads 'value', returns an integer
by other posts by this author
Jan 25 2004 11:10AM messages near this date
[PHP-DOC] #27032 [NEW]: php.net/rand reads 'value', returns an integer | Re: Ivan Sutherland's Sketchpad Thesis in a nice PDF!
ID:               27032
 Updated by:       nlopess@[...].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
Thread:
trhaynes at hotmail dot com


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved