arb_randtest, arb_randtest_exact, arb_randtest_precise, arb_randtest_positive, arb_randtest_wide, arb_randtest_special
Synopsis
#include <flint/arb.h>void arb_randtest(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourcevoid arb_randtest_exact(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourcevoid arb_randtest_precise(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourcevoid arb_randtest_positive(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourcevoid arb_randtest_wide(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourcevoid arb_randtest_special(arb_t x, flint_rand_t state, slong prec, slong mag_bits)sourceSet x to a random ball for testing, with a midpoint of at most prec bits and exponents of at most mag_bits bits: a finite ball, an exact number, a ball with radius about 2^{-\mathit{prec}} times the midpoint, such a ball that is certainly positive, a ball with independent midpoint and radius (possibly very wide), and a ball that may have an infinite or NaN midpoint or an infinite radius.
Cite this page
The FLINT team, “arb_randtest, arb_randtest_exact, arb_randtest_precise, arb_randtest_positive, arb_randtest_wide, arb_randtest_special (arb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb/arb_randtest.html (generated 2026-10-20).
@misc{flint-doc-arb-arb-randtest,
author = {{The FLINT team}},
title = {{arb\_randtest, arb\_randtest\_exact, arb\_randtest\_precise, arb\_randtest\_positive, arb\_randtest\_wide, arb\_randtest\_special (arb.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arb/arb_randtest.html},
note = {Generated 2026-10-20}
}