SetRandomizerSeed
From GECK
(Redirected from SetSeed)
A function added by the ShowOff NVSE Plugin.
Contents
Description
Sets the randomizer seed (unsigned int) for the calling mod, and resets any progress made with that seed.
If no seedValue is specified, or if it is set to 0, will set the seed to the default seed (value of 5489).
- NOTE: since the default seed is constant, it will always generate the same sequence of random numbers.
For use with generating random numbers via RandSeeded / GetRandomPercentSeeded. Does not affect random number generation for any other function.
Syntax
SetRandomizerSeed seedValue:UInt
Or:
SetSeed seedValue:UInt
Example
SetRandomizerSeed 20
Sets the seed for whatever mod is calling this function to 20, and resets that mod's seed progress.
This means that the next sequence of random numbers will predictably generate the same numbers (assuming the min/max don't change in-between calls with RandSeeded).