FLINT3.7.0-dev

nmod_poly_randtest_irreducible, nmod_poly_randtest_monic_irreducible

Synopsis#include <flint/nmod_poly.h>
void nmod_poly_randtest_irreducible(nmod_poly_t poly, flint_rand_t state, slong len)source
void nmod_poly_randtest_monic_irreducible(nmod_poly_t poly, flint_rand_t state, slong len)source

Set poly to a random irreducible polynomial of length at most len (which may be a constant), and to a random monic irreducible polynomial of length exactly \mathit{len} \ge 2.

Cite this page

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