FLINT3.7.0-dev

padic_randtest

Synopsis#include <flint/padic.h>
void padic_randtest(padic_t rop, flint_rand_t state, const padic_ctx_t ctx)source

Sets rop to a random reduced element. Its valuation, when it is nonzero, lies in [-\lceil N/10 \rceil, N) for N > 0, in [N - \lceil -N/10 \rceil, N) for N < 0 and in [-10, 0) for N = 0.

Cite this page

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