FLINT3.7.0-dev

flint_mpn_urandomb

Synopsis#include <flint/mpn_extras.h>
void flint_mpn_urandomb(mp_ptr rp, flint_rand_t state, flint_bitcnt_t n)source

Sets (\mathit{rp}, \lceil n / \mathtt{FLINT\_BITS} \rceil) to a uniformly random integer in [0, 2^n).

Cite this page

The FLINT team, “flint_mpn_urandomb (mpn_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_extras/flint_mpn_urandomb.html (generated 2026-10-20).