FLINT3.7.0-dev

_fmpq_vec_randtest

Synopsis#include <flint/fmpq_vec.h>
void _fmpq_vec_randtest(fmpq * f, flint_rand_t state, slong len, flint_bitcnt_t bits)source

Sets the entries to random canonical fractions as given by fmpq_randtest, with numerators and denominators of at most bits bits. With probability 1/2 the vector is made sparse, with a random density of nonzero entries.

Cite this page

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