n_randtest
Synopsis
#include <flint/ulong_extras.h>ulong n_randtest(flint_rand_t state)sourceReturns a random integer of random bit length between 0 and FLINT_BITS, with 0, 1, COEFF_MAX, WORD_MAX, UWORD_MAX and sparse values made more likely.
Guides#
- Implementing a ring (
gr)
Cite this page
The FLINT team, “n_randtest (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_randtest.html (generated 2026-10-20).
@misc{flint-doc-ulong-extras-n-randtest,
author = {{The FLINT team}},
title = {{n\_randtest (ulong\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ulong_extras/n_randtest.html},
note = {Generated 2026-10-20}
}