Home › Class layouts › Other › Random

Needs the Community Extension. Not available in the unmodified game; works while the Community Extension mod is active (its own functions, or raw memory access with Mem/ObjMem).

Random

GameCore::Random — class, size 32 bytes (0x20).

Linux offset Member Type Lua methods (inferred)
0x0 _vptr$Random fn(...)**
0x8 m_ulRandomSeed SeedType
0xc m_ulCallCount uint32
0x10 m_ulResetCount uint32
0x14 m_uiLockCount uint
0x18 m_bSynchronous bool reads: Game:GetRandNum, TerrainBuilder:GetRandomNumber