flint_mpn_urandomb
Synopsis
#include <flint/mpn_extras.h>void flint_mpn_urandomb(mp_ptr rp, flint_rand_t state, flint_bitcnt_t n)sourceSets (\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).
@misc{flint-doc-mpn-extras-flint-mpn-urandomb,
author = {{The FLINT team}},
title = {{flint\_mpn\_urandomb (mpn\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_extras/flint_mpn_urandomb.html},
note = {Generated 2026-10-20}
}