MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Float

Method Float

LuaSTGPlus/LuaWrapper.cpp:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 return 1;
245 }
246 static int Float(lua_State* L)LNOEXCEPT
247 {
248 fcyRandomWELL512* p = static_cast<fcyRandomWELL512*>(luaL_checkudata(L, 1, TYPENAME_RANDGEN));
249 double a = luaL_checknumber(L, 2), b = luaL_checknumber(L, 3);
250 lua_pushnumber(L, p->GetRandFloat((float)a, (float)b));
251 return 1;
252 }
253 static int Sign(lua_State* L)LNOEXCEPT
254 {
255 fcyRandomWELL512* p = static_cast<fcyRandomWELL512*>(luaL_checkudata(L, 1, TYPENAME_RANDGEN));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected