FLINT3.7.0-dev

fmpz_mpoly_q_randtest

Synopsis#include <flint/fmpz_mpoly_q.h>
void fmpz_mpoly_q_randtest(fmpz_mpoly_q_t res, flint_rand_t state, slong length, ulong coeff_bits, slong exp_bound, const fmpz_mpoly_ctx_t ctx)source

Sets res to a random rational function whose numerator and denominator (before canonicalisation) have at most length terms, coefficients of at most coeff_bits bits and exponents less than exp_bound.

Cite this page

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