# Turn Fixed Random Seed On/Off

Grammar — Turn fix random seed onOff
FlagsNative | Action

Enables or disables fixed random seed. When fixed random seed is enabled, the pattern of random numbers generated will be consistent every time the map runs. This action is primarily used to ensure that cinematic sequences involving units that have abilities with lots of randomness play out the same way each time.

# Arguments

Returns — void

native void GameSetSeedLocked(bool locked);

Category: Game / Game Settings

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2146

        AITimePause(true);
        GameSetSpeedLocked(true);
        GameSetSeedLocked(lp_fixedSeedOnOff);
        GamePauseAllCharges(true);
        VisEnable(c_visTypeMask, false);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2161


        GameSetSpeedLocked(false);
        GameSetSeedLocked(false);
        GamePauseAllCharges(false);
        VisEnable(c_visTypeMask, true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1830

        AITimePause(true);
        GameSetSpeedLocked(true);
        GameSetSeedLocked(true);
        GamePauseAllCharges(true);
        VisEnable(c_visTypeMask, false);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1845


        GameSetSpeedLocked(false);
        GameSetSeedLocked(false);
        GamePauseAllCharges(false);
        VisEnable(c_visTypeMask, true);