MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Script_General_RandomRange

Function Script_General_RandomRange

src/script/general.c:130–133  ·  view source on GitHub ↗

* Get a random value between min and max. * * Stack: 1 - The minimum value. * 2 - The maximum value. * * @param script The script engine to operate on. * @return The random value. */

Source from the content-addressed store, hash-verified

128 * @return The random value.
129 */
130uint16 Script_General_RandomRange(ScriptEngine *script)
131{
132 return Tools_RandomLCG_Range(STACK_PEEK(1), STACK_PEEK(2));
133}
134
135/**
136 * Display a modal message.

Callers

nothing calls this directly

Calls 1

Tools_RandomLCG_RangeFunction · 0.85

Tested by

no test coverage detected