_fmpz_vec_randtest, _fmpz_vec_randtest_unsigned
Synopsis
#include <flint/fmpz_vec.h>void _fmpz_vec_randtest(fmpz * f, flint_rand_t state, slong len, flint_bitcnt_t bits)sourcevoid _fmpz_vec_randtest_unsigned(fmpz * f, flint_rand_t state, slong len, flint_bitcnt_t bits)sourceSet the entries to random integers of at most bits bits, generated by fmpz_randtest (respectively fmpz_randtest_unsigned). With probability 1/2 the vector is made sparse, with a random proportion of zero entries, to exercise special cases in tests.
Cite this page
The FLINT team, “_fmpz_vec_randtest, _fmpz_vec_randtest_unsigned (fmpz_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_vec/_fmpz_vec_randtest.html (generated 2026-10-20).
@misc{flint-doc-fmpz-vec-fmpz-vec-randtest,
author = {{The FLINT team}},
title = {{\_fmpz\_vec\_randtest, \_fmpz\_vec\_randtest\_unsigned (fmpz\_vec.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_vec/_fmpz_vec_randtest.html},
note = {Generated 2026-10-20}
}