Lua Random Function Processing