rand
description
If called without the optional $min, $max arguments rand() returns a pseudo-random integer between 0 and getrandmax(). If you want a random number between 5 and 15 (inclusive), for example, use rand(5, 15).
Liefert eine Pseudozufallszahl zwischen $min und $max (inklusive), oder zwischen 0 und get_randmax() falls keine Parameter angegeben wurden. Wenn Sie z.B. einen Zufallswert zwischen 5 und 15 benötigen so wäre der Aufruf dafür rand(5, 15).
Se si emplea sin los argumentos $min y $max, rand() devuelve un entero pseudo-aleatorio entre 0 y getrandmax(). Para obtener un número aleatorio, por ejemplo, entre 5 y 15 (incluidos), use rand(5,15).
Appelée sans les options $min et $max, rand() retourne un nombre pseudoaléatoire entre 0 et getrandmax(). Si vous voulez un nombre aléatoire entre 5 et 15 (inclus), par exemple, utilisez rand (5, 15).
Se chamado sem os parâmetros opcionais $min e $max, rand() retornará um pseudo inteiro randômico entre 0 e getrandmax(). Se você precisa de um número aleatório entre 5 e 15 (inclusive), por exemplo, utilize rand (5, 15).
declaration of rand
int rand ( int $min , int $max )
test rand online
share rand
comments for rand
be the first
No comments so far for rand(). Leave yours as first below.