gmp_random_bits
PHP 5 >= 5.6.3, PHP 7, PHP 8
gmp_random_bits - Random number
Manual
gmp_random_bits(
int$bits ): GMP
Generate a random number. The number will be between 0 and (2 ** bits) - 1.
bits must greater than 0, and the maximum value is restricted by available memory.
Parameters
- bits
-
The number of bits.
Return Values
A random GMP number.