nmod_poly_randtest, nmod_poly_randtest_not_zero, nmod_poly_randtest_monic
Synopsis
#include <flint/nmod_poly.h>void nmod_poly_randtest(nmod_poly_t poly, flint_rand_t state, slong len)sourcevoid nmod_poly_randtest_not_zero(nmod_poly_t poly, flint_rand_t state, slong len)sourcevoid nmod_poly_randtest_monic(nmod_poly_t poly, flint_rand_t state, slong len)sourceSet poly to a random test polynomial of length at most len, a nonzero one (requires \mathit{len} \ge 1 and n \ge 2), and a monic one of length exactly \mathit{len} \ge 1.
Cite this page
The FLINT team, “nmod_poly_randtest, nmod_poly_randtest_not_zero, nmod_poly_randtest_monic (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.html (generated 2026-10-20).
@misc{flint-doc-nmod-poly-nmod-poly-randtest,
author = {{The FLINT team}},
title = {{nmod\_poly\_randtest, nmod\_poly\_randtest\_not\_zero, nmod\_poly\_randtest\_monic (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/nmod_poly_randtest.html},
note = {Generated 2026-10-20}
}