Is there a way to index a certain amount of things in a table before a given value?

I have a table from which I’m randomly selecting a value and need to set all but that value to something, my only problem is I am unsure of how to access the rest of the table that I passed by whilst randomly selecting a value from it. I am using a for in pairs loop and the way I have it written it can only select whatever is indexed after the randomly picked value.

for i,v in pairs(players) do
		local lol = math.random(0,100)
		if activekiller == false and lol > 95 then
			killerselected(v)
		elseif activekiller == true then
			citizenselected(v)
			 
	end

Actually, you do not need to use a for i, v loop for this.

local tb = game.Players:GetChildren()
local index = math.random(1, #tb)
local Value = tb[index]
print(Value)

You can still access the rest of the values in the table, you are just selecting a certain. If you just do print(v) after the local lol = ... then it would print every single value you are looping through.

Thank you very much kind sir/mam this helps in many ways!