#27032 [NEW]: php.net/rand reads 'value', returns an integer

From: Date: Sat, 24 Jan 2004 23:41:05 +0000
Subject: #27032 [NEW]: php.net/rand reads 'value', returns an integer
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358438@lists.php.net to get a copy of this message
From: trhaynes at hotmail dot com Operating system: N/A PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: php.net/rand reads 'value', returns an integer 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 bug report at http://bugs.php.net/?id=27032&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27032&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27032&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27032&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27032&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27032&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27032&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27032&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27032&r=support Expected behavior: http://bugs.php.net/fix.php?id=27032&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27032&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27032&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27032&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27032&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27032&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27032&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27032&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27032&r=float

« previous php.doc (#969358438) next »