Teleportation Service & Index

How can I send a player to a random roblox name that Ive whitelisted using this method?

Code:

local games = {
	2317712696,
	3440262694,
	1962086868,
}

local TeleportService = game:GetService("TeleportService")
local player = game:GetService("Players").LocalPlayer

script.Parent.MouseButton1Down:Connect(function(gamees)
	TeleportService:Teleport(games[gamees.Name], player)
end)

Select a random element from the table by picking a random number between 1 and the number of items, then use that as an index.

games[math.random(1, #games)]