Once you have ten members in one gang there's a 60% chance of getting a gang leader in an intake and if you still don't have a leader after ten days one should be elected from the existing membership.
Then once you have a leader they'll appoint lieutenants (one for every ten members) and that establishes the chain of command. The gang leader will also start recruiting new members from the general population.