Docs: dump & random

This commit is contained in:
Frans de Jonge
2017-04-14 18:50:33 +02:00
committed by Qingping Hou
parent 96d4adb34c
commit 108ed374b3
2 changed files with 10 additions and 8 deletions

View File

@@ -1,15 +1,15 @@
-- A set of functions to extend math.random and math.randomseed.
--- A set of functions to extend math.random and math.randomseed.
local random = {}
-- Use current time as seed to randomlize.
--- Uses current time as seed to randomize.
function random.seed()
math.randomseed(os.time())
end
random.seed()
-- Return a UUID (v4, random).
--- Returns a UUID (v4, random).
function random.uuid(with_dash)
local array = {}
for i = 1, 16 do