gmp_libmpz_random Method |
Namespace: Math.Gmp.Native
The generated random number doesn’t satisfy any particular requirements of randomness. Negative random numbers are generated when max_size is negative.
This function is obsolete. Use mpz_urandomb(mpz_t, gmp_randstate_t, mp_bitcnt_t) or mpz_urandomm(mpz_t, gmp_randstate_t, mpz_t) instead.
The random number functions of GMP come in two groups; older function that rely on a global state, and newer functions that accept a state parameter that is read and modified. Please see the GNU MP - Random Number Functions for more information on how to use and not to use random number functions.