It is something that occured a few times in Roman history.
A collective punishment, 10% of the soldiers killed by their peers, randomly choosen.