Bee Swarm Simulator Wiki
Register
Bee Swarm Simulator Wiki
No edit summary
No edit summary
Line 1: Line 1:
 
local random = {}
 
local random = {}
 
function random.rand(frame)
 
function random.rand(frame)
  +
-- testing
math.randomseed(os.time(os.date('*t')))
+
---math.randomseed(os.time(os.date('*t')))
math.random(frame.args[1]) math.random(frame.args[1]) math.random(frame.args[1])
 
return math.random(frame.args[1])
+
-- math.random(frame.args[1]) math.random(frame.args[1]) math.random(frame.args[1])
  +
return os.time(os.date('*t'))
 
end
 
end
 
return random
 
return random

Revision as of 12:44, 1 August 2021

A list of functions used in my templates and games.


local random = {}
function random.rand(frame)
	-- testing
	---math.randomseed(os.time(os.date('*t')))
	-- math.random(frame.args[1]) math.random(frame.args[1]) math.random(frame.args[1])
	return os.time(os.date('*t'))
end
return random