MS-13 members targeted random civilians so they could increase their status within the gang, prosecutors said.