FLINT3.7.0-dev

fq_default_poly_randtest, fq_default_poly_randtest_not_zero, fq_default_poly_randtest_monic, fq_default_poly_randtest_irreducible

Synopsis#include <flint/fq_default_poly.h>
void fq_default_poly_randtest(fq_default_poly_t f, flint_rand_t state, slong len, const fq_default_ctx_t ctx)source
void fq_default_poly_randtest_not_zero(fq_default_poly_t f, flint_rand_t state, slong len, const fq_default_ctx_t ctx)source
void fq_default_poly_randtest_monic(fq_default_poly_t f, flint_rand_t state, slong len, const fq_default_ctx_t ctx)source
void fq_default_poly_randtest_irreducible(fq_default_poly_t f, flint_rand_t state, slong len, const fq_default_ctx_t ctx)source

Random polynomials of length at most len (nonzero for the second function, which requires len > 0), random monic polynomials of length len, and random monic irreducible polynomials of length len, for testing.

Cite this page

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