PHP 8.3.4 Released!

gmp_random

(PHP 4 >= 4.0.4, PHP 5, PHP 7)

gmp_randomGeneratore di numeri casuali

Descrizione

gmp_random(int $limiter): resource

Genera un numero casuale. Il numero, sarà lungo un numero di WORD (2 byte) non superiore all'argomento limiter. Se l'argomento limiter è negativo, il numero generato sarà anch'esso negativo.

add a note

User Contributed Notes 1 note

up
1
asphp at dsgml dot com
7 years ago
Warning: Do not use this function.

Use gmp_random_bits() or gmp_random_range() instead.

The documentation and the code for this function do NOT match, and in any case this function is quite useless.
To Top