FLINT3.7.0-dev

_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)source

Sets 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).