MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_random_unitrandom

Function dfhack_random_unitrandom

library/LuaApi.cpp:1172–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170 return 1;
1171}
1172static int dfhack_random_unitrandom(lua_State *L)
1173{
1174 lua_pushnumber(L, check_random_native(L, 1)->unitrandom());
1175 return 1;
1176}
1177static int dfhack_random_unitvector(lua_State *L)
1178{
1179 MersenneRNG *prng = check_random_native(L, 1);

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.85
check_random_nativeFunction · 0.85

Tested by

no test coverage detected