FLINT3.7.0-dev

flint_rand_set_seed, flint_rand_get_seed

Synopsis#include <flint/flint.h>
void flint_rand_set_seed(flint_rand_t state, ulong seed1, ulong seed2)source
void flint_rand_get_seed(ulong * seed1, ulong * seed2, flint_rand_t state)source

Set or read the two words of the state. Setting the state to values read earlier repeats the sequence from that point.

Cite this page

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