Macaulay2 » Documentation
Packages » PHCpack :: randomSeed
next | previous | forward | backward | up | index | toc

# randomSeed -- seed for the random number generators

## Description

To avoid singularities during complex path following, the homotopy methods use a random constant. Different runs with solveSystem, trackPaths, or mixedVolume (with StartSystem set to true) may therefore lead to the solutions listed in a different order. Fixing the value of randomSeed leads to reproducible runs.

## Functions with optional argument named randomSeed:

- solveSystem(...,randomSeed=>...) -- option to set the seed of the random number generators

## For the programmer

The object randomSeed is a symbol.

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