FLINT3.7.0-dev

fmpq_poly_randtest

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_randtest(fmpq_poly_t f, flint_rand_t state, slong len, flint_bitcnt_t bits)source

Sets f to a random polynomial with coefficients up to the given length and where each coefficient has up to the given number of bits. The coefficients are signed randomly. One must call flint_rand_init before calling this function.

Cite this page

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