MiniDoom

src/m_random.ml

Supplies Doom's deterministic gameplay and miscellaneous pseudo-random byte streams.

Package
(global)
Reachable
Yes

Imports

Declarations

M_ClearRandom

function M_ClearRandom()

Resets both Doom random-table cursors so demos and gameplay restart from the canonical deterministic sequence.

View source

M_Random

function M_Random()

Advances the independent miscellaneous random-table stream so UI effects cannot perturb gameplay determinism.

View source

P_Random

function P_Random()

Advances and returns the deterministic gameplay random-table stream used by demo-synchronized simulation.

View source

prndindex

prndindex

Tracks the mutable prndindex value used by the m random subsystem.

View source

rndindex

rndindex

Tracks the mutable rndindex value used by the m random subsystem.

View source

rndtable

rndtable

Stores the rndtable collection used by the m random subsystem.

View source