function Basic.GetTableRandom(V,K)if type(V)~="\116\097\098\108\101"then return V end local q=K or System.Random if V.Min and V.Max then return q:NextNumber(V.Min,V.Max)end local I=Basic.TableToArray(V)return I[q:NextInteger(1,#I)]end

function Basic.GetTableRandom(Tbl, rng)
	if type(Tbl) ~= "table" then return Tbl end
	
	local Rng = rng or System.Random
	if Tbl.Min and Tbl.Max then
		return Rng:NextNumber(Tbl.Min, Tbl.Max)
	end
	
	local Array = Basic.TableToArray(Tbl)
	return Array[Rng:NextInteger(1, #Array)]
end
