gmp_random_seed


gmp apg

SETS the RNG, random number generator, seed.





This function returns NULL on success or FALSE on failure.

Also, issues a Warning or a Fatal error if $seed is not valid.



<?php

void gmp_random_seed 
GMP|int|string $seed )


where,

$seed The seed to consider

?>
 

$seed


The seed to be set for the gmp_random, gmp_random_bits, and gmp_random_range functions.



  1 EXERCISE   

<?php

$gmprnd01a 
gmp_random_seed(10);

$gmprnd01b gmp_random_seed(-1000);

$gmprnd01c gmp_random_seed('0xff');

$gmprnd01d gmp_random_seed('032');

// Attention to this next value
// $gmprnd01e = gmp_random_seed('test');

?>