Folder values repeats even thought i made it not repeat

I want to make a script which gets 3 random items from folder and so it would’t repeat.

Even thought i think i made it to not repeat it still repeats. Also this code is in module script. In this code there is also no errors.

local module = {}

function module.wrks()
	local count = 0
	local items = game.ServerStorage.Will:GetChildren()
	local randomItem = items[math.random(1, #items)]
	repeat
		randomItem = items[math.random(1, #items)]
		if randomItem.Value <= game.ServerStorage.Level.Value then
			if game.ServerStorage.Will:FindFirstChild(randomItem) ~= randomItem then
				count = count + 1
			randomItem.Parent = game.ServerStorage.Choosen
				print(randomItem)
			end
		end
	until count == 3
end
	
return module

I hope you can help me.

local module = {}

function module.wrks()
	for i = 1,3 do
		local items = game.ServerStorage.Will:GetChildren()
		local randomItem = items[math.random(1, #items)]
		randomItem:Clone().Parent = game.ServerStorage.Choosen
		randomItem.Parent = script
	end

	for _,v in pairs(script:GetChildren()) do
		v.Parent = game.ServerStorage.Will
	end
end
	
return module
local randomItems = {}
local randomItem
for i = 1, 3 do
	repeat
		randomItem = items[math.random(1, #items)]
	until not table.find(randomItems, randomItem)
	table.insert(randomItems, randomItem)
end

This is how you select three random items while ensuring the three items are unique.

Bare in mind, this is just an example script.