random.


function CLASS:Loadout( pl )
 
	pl:Give( "Weapon_Colt1911" )
	pl:Give( "weapon_thompsonM1A1" )

 
end

can i make so it gives away random weapons? , sorry im just a bad explainer

//Thanks

Make a table of weapon classes that it can choose from and use **[Table.Random

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Table.Random)** to select a random one.

[lua]local weapons = {
“Weapon_Colt1911”,
“weapon_thompsonM1A1”
}

function CLASS:Loadout(ply)
ply:Give(table.Random(weapons))
end[/lua]

thank you.