From EDukeWiki
Revision as of 07:11, 12 July 2020 by Rob Anybody (talk | contribs) (Document randomseed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The value used to seed the shared "game" PRNG.

It is initially set to 1996. It can be set to an arbitrary value with getticks:

getticks randomseed

Note that the value of randomseed will change when invoking the PRNG through functions like randvar. If you want to record the seed for future play sessions, do it before invoking the generator.