# 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.sc2mod

NativeLib.galaxy

// L2146
GameSetSeedLocked(lp_fixedSeedOnOff)
// L2161
GameSetSeedLocked(false)
// L1830
GameSetSeedLocked(true)
// L1845
GameSetSeedLocked(false)