How to make a ply:Give random...

Hello Facepunch,
I am working on a little gamemode for my private server. I am currently using placeholders, but essentially I want to make the following weapons given to the player given randomly. (I want to make it so you might spawn with a shotgun or a rifle, or both).


	
ply:Give( "weapon_ar2" ) --Give them a rifle (placeholder)
ply:Give( "weapon_shotgun" ) --Give them a shotgun (placeholder)


I have seen the math.Random, but that seemed exclusive to integers.
Thanks guys,
Banini

for 2 weapons:
[lua]if math.random(2) == 1 then
ply:Give(“weapon_ar2”)
else
ply:Give(“weapon_shotgun”)
end[/lua]

for more than 2 weapons:
[lua]local weapons = {
“weapon_ar2”,
“weapon_smg1”,
“weapon_shotgun”,
“weapon_rpg”
}
ply:Give(weapons[math.random(#weapons)])
[/lua]

Or:
[lua]local randWeap = {
“weapon_ar2”,
“weapon_smg1”,
“weapon_shotgun”,
“weapon_rpg”
}
ply:Give(table.Random(randWeap))
[/lua]