FLINT3.7.0-dev

arb_get_rand_fmpq

Synopsis#include <flint/arb.h>
void arb_get_rand_fmpq(fmpq_t q, flint_rand_t state, const arb_t x, slong bits)source

Sets q to a random rational number in the interval of x, whose denominator is the binary denominator of x times a random integer of up to bits bits. The midpoint and radius must be finite and of reasonable size.

Cite this page

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