• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
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
  
2,922

edits

Navigation menu