My Random Table

Hello, I have worked on this table that gives you random results

Randoms = {
	
	new = function(Name,Function)
		Randoms[Name] = Function
	end,	
	Boolean = function()
		local Bools = {false,true}
		return Bools[math.random(1,#Bools)]
	end,
	Material = function()
		local Materials = {}
		for i,v in pairs(Enum.Material:GetEnumItems()) do
			Materials[#Materials+1] = v
		end
		return Materials[math.random(1,#Materials)]
	end,
	Color = function()
		return Color3.new(math.random(),math.random(),math.random())
	end,
	Number = function(min,max)
		return math.random(min,max)
	end,
	Table = function(T)
		if typeof(T) ~= "table" then
			error("table expected, got " .. typeof(T))
		end
		return T[math.random(1,#T)]
	end,
	enum = function(E)
		if E ~= Enum and typeof(E) == "Enum" then
			local EnumItem = E:GetEnumItems()
			local TableEnum = {}
			for i,v in pairs(EnumItem) do
				TableEnum[#TableEnum+1] = v
			end
			return TableEnum[math.random(1,#TableEnum)]
		end
	end,
}

Here Is The Module: Random Module - Roblox