<?php
GMP gmp_random_bits ( int $bits )
where,
$bits = The number of bits to consider
?>
<?php
// Run this code several times
$nbrbits01a = 5;
// You must test other values in your system
$nbrbits01b = 100000;
// You must test other values in your system
$rndbits01a = gmp_random_bits($nbrbits01a);
$rndbits01b = gmp_random_bits($nbrbits01b);
echo 'gmp_random_bits( ' . $nbrbits01a . ' ) = ' .
strval($rndbits01a) . '<br><br>';
echo 'gmp_random_bits( ' . $nbrbits01b . ' ) = ' .
strval($rndbits01b) . '<br><br>';
?>