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

search for in the

mt_rand> <min
[edit] Last updated: Fri, 24 Feb 2012

view this page in

mt_getrandmax

(PHP 4, PHP 5)

mt_getrandmaxRetorna o maior valor aletório possível

Descrição

int mt_getrandmax ( void )

Retorna o maior valor que pode ser obtido numa chamada a mt_rand().

Valor Retornado

Retorna o valor máximo aleatório retornado por mt_rand()

Veja Também

  • mt_rand() - Gerador melhorado de números aleatórios
  • mt_srand() - Semeia o gerador melhorado de números aleatórios
  • getrandmax() - Retorna o maior valor aletório possível



add a note add a note User Contributed Notes mt_getrandmax
marcus at synchromedia dot co dot uk 10-Aug-2011 01:41
On both 32 and 64-bit systems (OS X and Linux), mt_getrandmax() returns 2147483647 for me, i.e. ~2^31.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites