FLINT3.7.0-dev

random_fermat

Synopsis#include <flint/fft.h>
random_fermat(nn, state, limbs)source

Sets the residue nn of \mathit{limbs} + 1 limbs to a random value for testing, including the extreme value 2^N and unreduced values with top limbs up to \pm 1023. Needs mpn_extras.h.

Cite this page

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