FLINT3.7.0-dev

fmpq_randtest_not_zero

Synopsis#include <flint/fmpq.h>
void fmpq_randtest_not_zero(fmpq_t res, flint_rand_t state, flint_bitcnt_t bits)source

As fmpq_randtest, but the result is nonzero. Throws if bits is zero.

Cite this page

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