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

Trying to print a random number in a table?

The code does print but I feel that it picks the same number it printed before more often. I feel as if this code does not print too random.

math.randomseed(os.time())

Entered = {
	
	'1',
	'2',
	'3',
	'4',
	'5',
	'6',
	'7',
	'8',
	'9'
	
}

--for i,v in pairs(Entered) do
	local Winner = Entered[math.random(1,#Entered)]
--end
print(Winner)

2 answers

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