Teams

Right my friend wants me to make 8 gamemode’s but on the first one i need a script to give a player a random team out of 2, like when the player joins the server they are given a team, P.E.T.A or the animal haters, please help me i only have to the 19th of augest to get all of these game modes working!

What are the team indexes for these teams?