fq_randtest, fq_randtest_not_zero
Synopsis
#include <flint/fq.h>void fq_randtest(fq_t rop, flint_rand_t state, const fq_ctx_t ctx)sourcevoid fq_randtest_not_zero(fq_t rop, flint_rand_t state, const fq_ctx_t ctx)sourceSet rop to a random element, respectively a random nonzero element, for testing: with probability 1/2 the coefficients are uniform, otherwise most of them are zero.
Cite this page
The FLINT team, “fq_randtest, fq_randtest_not_zero (fq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq/fq_randtest.html (generated 2026-10-20).
@misc{flint-doc-fq-fq-randtest,
author = {{The FLINT team}},
title = {{fq\_randtest, fq\_randtest\_not\_zero (fq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq/fq_randtest.html},
note = {Generated 2026-10-20}
}