Username Generator That Generates Rare NOT IN USE Usernames

I created this username generator which can generate rare names that are not in use.

All you do is put what’s bellow in a script, run the game, and wait while looking at the output.

local v = {"a", "e", "i", "o", "u",}
local cv = {"b", "c", "d", "f", "g", "h","j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z", "ck", "ch"}

function getRandom(Type)
	
	if Type == "v" then
		local num = math.random(1, #v)
		local value = v[num]
		value = tostring(value)
		return value
	end
	
	if Type == "cv" then
		local num = math.random(1, #cv)
		local value = cv[num]
		value = tostring(value)
		return value
	end
		
	
end

function GetName()
	local GenDist = math.random(3, 3)
	local last
	local final = ""
	
	if last == nil then
		local value = math.random(0, 1)
		
		if value == 0 then
			last = "v"
		else
			last = "cv"
		end
		
	end
	
	for i = 1, GenDist do
		if last == "v" then
			last = "cv"
			final = final .. getRandom("cv")
		end
		if last == "cv" then
			last = "v"
			final = final .. getRandom("v")
		end
	end
	
	local success, errormessage = pcall(function()
		game.Players:GetUserIdFromNameAsync(final)
	end)
	
	if success then
	else
		return final
	end
	
end

while wait(0.5) do
	local get = GetName()
	
	if get ~= nil then
		print(get)
	end
end
3 Likes

Rare as in short or “clean” names

Do note that banned users are in the system still.

what was the point in using math.random here :joy:

its meant to be adjusted in order to calculate any amount from 3 to 20

1 Like

Just tried it, very nice, the names are weird but very unique in a way lol. This is a very nice script.

2 Likes

At times, rarely, it is possible that an in use name may be generated. Reason being delay.