Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

{solved} Is it possible to generate a random code? like 17Nh71 and so on

I’m looking for a script to print random text. Thank you, my apologies for not sending a code, I just want to see if it’s possible.

1 answer

✓ Accepted answer

Here's a script for anyone who has the same problem as me

function GenerateRandom(symbols)
local letters={"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
local result, symbols = "", symbols or 6 --- (6) is the number of how many sybols
math.randomseed(tick() ~= nil and tick() or time())
for i=1,symbols do
local add = math.random(1,2)==1 and math.random(0,9) or letters[math.random(1,#letters)]:upper()
result = result..add
end
return result
end
while wait(1) do
print(GenerateRandom())
end

2 comments

3

You can use httpservice:GenerateGUID(false)

0

true

This discussion is preserved as it was. New answers, comments, and votes are closed.