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

search for in the

hexdec> <fmod
Last updated: Fri, 27 Jun 2008

view this page in

getrandmax

(PHP 4, PHP 5)

getrandmax — Show largest possible random value

Description

int getrandmax ( void )

Returns the maximum value that can be returned by a call to rand().

Return Values

The largest possible random value returned by rand()



hexdec> <fmod
Last updated: Fri, 27 Jun 2008
 
add a note add a note User Contributed Notes
getrandmax
fig dot ghd742 at gmail dot com
03-Jul-2008 09:55
In me Windows XP I got only 32767 from getrandmax();
Anonymous
10-Apr-2008 09:06
it returns 2147483647: (2^31) - 1
stefan at aks-host dot de
02-Jan-2008 07:09
under win2k3, php5.2.5, it returns 32767...
chax-phpnet at i-rpg dot net
02-Dec-2007 03:27
it returns 2147483647 (2^31) for both i386 and x86_64 under GNU/Linux.

hexdec> <fmod
Last updated: Fri, 27 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites