Quick actions

cmd+k|ctrl+k

Navigation

Languages

Random Password generator

Snippet info

Language

Lua

Visibility

public

Author

dantect

Created

2023-06-30T11:43:20.487995Z

Updated

2023-06-30T11:43:20.487995Z

local Long = 50
local function GLA(l)
    if math.random(1, 123) == 104 then math.randomseed(os.time()/os.clock()) end --Checks if math.random is random and if not, makes it random
	local t = ""
	for i = 1, l do
		local l = string.char(math.random(33, 126)) --We tell it to generate characters from "!" to "~".
		t = t .. l
	end
	return t
end
print(GLA(Long))
INFO