FLINT3.7.0-dev

_nmod_vec_rand

Synopsis#include <flint/nmod_vec.h>
void _nmod_vec_rand(nn_ptr vec, flint_rand_t state, slong len, nmod_t mod)source

Sets the entries of vec to integers chosen uniformly at random in [0, n).

Cite this page

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