I've taken up event development, and have managed to make a few things. Currently, I'm at a loss at making teams for team events.
I need to split up the players in the room into 2 equal (random) groups, each group with a different guild name.
I figure I'll need to use a randomizer, but I've never really done that before. And I'll need to apply it to all players in the room, which I have trouble doing (

)
So if you guys could help me, that'd be great.
And if you could help me with the script pointing out what the more complicated parts mean, that'd be great. My goal is to learn, not to copy.