Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:RemiLib
(view source)
Revision as of 05:26, 25 October 2015
142 bytes added
,
9 years ago
no edit summary
Line 62:
Line 62:
local time = os.time()
local time = os.time()
local rand = math.random()
local rand = math.random()
−
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer)
+
local rtnHash = (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
+
local rtnStr = tostring(time) .. " | " .. tostring(rand) .. " | " .. tostring(p.dictConcat(seed)) .. " | " .. tostring(randomizer
) .. " | " .. tostring(rtnHash
)
return rtnStr
return rtnStr
-- return (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
-- return (math.floor(time*265314426625821*rand)-randomizer) % 2^32+math.floor(math.random()*1381242451)
Remi Scarlet
2,922
edits