_nmod_vec_randtest
Synopsis
#include <flint/nmod_vec.h>void _nmod_vec_randtest(nn_ptr vec, flint_rand_t state, slong len, nmod_t mod)sourceSets the entries of vec to values of n_randtest reduced modulo n. With probability 1/2 the vector is made sparse. Intended for test code.
Cite this page
The FLINT team, “_nmod_vec_randtest (nmod_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_vec/_nmod_vec_randtest.html (generated 2026-10-20).
@misc{flint-doc-nmod-vec-nmod-vec-randtest,
author = {{The FLINT team}},
title = {{\_nmod\_vec\_randtest (nmod\_vec.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_vec/_nmod_vec_randtest.html},
note = {Generated 2026-10-20}
}