How would I put a random player within a 300 block radius into a team
I'm going to assume the "other" team is the innocents. First, set everyone to the default (innocent) team, then use @r to set a random player to the detective team, then use @r[team=innocent] to select a random player from the innocent team and set their team to murderer.