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

Function dfhack_random_drandom1

library/LuaApi.cpp:1167–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165 return 1;
1166}
1167static int dfhack_random_drandom1(lua_State *L)
1168{
1169 lua_pushnumber(L, check_random_native(L, 1)->drandom1());
1170 return 1;
1171}
1172static int dfhack_random_unitrandom(lua_State *L)
1173{
1174 lua_pushnumber(L, check_random_native(L, 1)->unitrandom());

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.85
check_random_nativeFunction · 0.85

Tested by

no test coverage detected