mpz_urandomb, mpz_urandomm, mpz_rrandomb, mpz_random (deprecated), and mpz_random2 (deprecated) all require the random state to be initialized. This requires a new struct, gmp_randstate_t and a call to one of the gmp_randinit* or gmp_randseed* functions to pick both the seed and the algorithm.
mpz_urandomb, mpz_urandomm, mpz_rrandomb, mpz_random (deprecated), and mpz_random2 (deprecated) all require the random state to be initialized. This requires a new struct, gmp_randstate_t and a call to one of the gmp_randinit* or gmp_randseed* functions to pick both the seed and the algorithm.