FLINT3.7.0-dev

_gr_vec_randtest

Synopsis#include <flint/gr_vec.h>
int _gr_vec_randtest(gr_ptr res, flint_rand_t state, slong len, gr_ctx_t ctx)source

Sets each entry to zero with probability 1/2 and to a random element (gr_randtest) otherwise.

Cite this page

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