How can assign a player a random team

How can I put a random player on a team and all the rest on the other?

hi @nelmi
There is a similar problem with an answer

issue. Setting 2 Teams of Random Players? - Programming & Scripting / Verse - Epic Developer Community Forums (unrealengine.com)

I read it and it doesn’t answer my issue, I’m trying to pick a player from the array and set him to team 1 (simple enough) but I don’t know how to get the other players to team two