Previous: , Up: Random Number Functions   [Index]


9.3 Random State Miscellaneous

Function: mpir_ui gmp_urandomb_ui (gmp_randstate_t state, mpir_ui n)

Return a uniformly distributed random number of n bits, ie. in the range 0 to 2^n-1 inclusive. n must be less than or equal to the number of bits in an mpir_ui.

Function: mpir_ui gmp_urandomm_ui (gmp_randstate_t state, mpir_ui n)

Return a uniformly distributed random number in the range 0 to n-1, inclusive.