FLINT3.7.0-dev

flint_rand_init, flint_rand_clear

Synopsis#include <flint/flint.h>
void flint_rand_init(flint_rand_t state)source
void flint_rand_clear(flint_rand_t state)source

Initialise a state with the default seed, and clear it. The state holds no allocated memory, but every flint_rand_init should be matched by a flint_rand_clear.

Cite this page

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