Skip to contents

sympy_seed(a) is sympy.core.random.seed(a): it seeds the Mersenne Twister generator that the randomized group algorithms (random_pr(), group_random(), normal_closure(), sylow_subgroup()) and perm_random() draw from, so that they reproduce SymPy's values.

Usage

sympy_seed(a)

Arguments

a

An integer seed.

Value

NULL, invisibly.

Examples

sympy_seed(3)
perm_random(5)
#> (1 2 3 4)