Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: getrandmax - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

hexdec" width="11" height="7"/> <fmod
Last updated: Sun, 25 Nov 2007

view this page in

getrandmax

(PHP 4, PHP 5)

getrandmax — 乱数の最大値を取得する

説明

int getrandmax ( void )

rand() をコールすることにより得られる最大の値を返します。

返り値

rand() が返す乱数の最大値を返します。



add a note add a note User Contributed Notes
getrandmax
stefan at aks-host dot de
02-Jan-2008 04:09
under win2k3, php5.2.5, it returns 32767...
chax-phpnet at i-rpg dot net
03-Dec-2007 12:27
it returns 2147483647 (2^31) for both i386 and x86_64 under GNU/Linux.

hexdec" width="11" height="7"/> <fmod
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites