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 21:39, 24 October 2015
126 bytes added
,
9 years ago
no edit summary
Line 1:
Line 1:
local p = {}
local p = {}
−
-- Module for random library functions for lua because lua sucks. Written by
-- Module for random library functions for lua because lua sucks. Written by
-- Remi_Scarlet
-- Remi_Scarlet
Line 9:
Line 8:
function p.capitalize(str)
function p.capitalize(str)
return (str:gsub("^%l", string.upper))
return (str:gsub("^%l", string.upper))
+
end
+
+
function p.timeHash()
+
local time = os.time()
+
local rand = math.random()
+
return math.floor(time*2653145821*rand) % 2^32
end
end
Remi Scarlet
2,922
edits