Skip to content

Instantly share code, notes, and snippets.

@DataKinds
Last active March 11, 2026 06:46
Show Gist options
  • Select an option

  • Save DataKinds/c6f40b11fab83b9145b5dcb188a0acb1 to your computer and use it in GitHub Desktop.

Select an option

Save DataKinds/c6f40b11fab83b9145b5dcb188a0acb1 to your computer and use it in GitHub Desktop.
math.randomseed(os.time())
local charset = "!@#$%^&*(){}|:\"\\[];',./=-_+"
function string.random(length)
if length > 0 then
local idx = math.random(1, #charset)
return string.random(length - 1) .. charset:sub(idx, idx)
else
return ""
end
end
while true do
os.setComputerLabel(string.random(math.random(15,20)))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment