Macaulay2 » Documentation
Packages » MonomialAlgebras :: SetSeed
next | previous | forward | backward | up | index | toc

# SetSeed -- Option to set the random seed for randomSemigroup and randomMonomialAlgebra.

## Description

Option to set the random seed for randomSemigroup and randomMonomialAlgebra.

For the standard option false Macaulay2 automatically produces a random seed from various system parameters.

If the option is true, then the command setRandomSeed() is applied upon initialization of the function to use always the standard Macaulay2 random seed.

If the option is set to an integer r then setRandomSeed(r) is applied.

## Functions with optional argument named SetSeed:

- `randomMonomialAlgebra(...,SetSeed=>...)`
- `randomSemigroup(...,SetSeed=>...)`

## For the programmer

The object SetSeed is a symbol.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/MonomialAlgebras.m2:2414:0.