Procedure
A unit selected for punishment by decimation was divided into groups of ten; each group drew lots (Sortition), and the soldier on whom the lot fell was executed by his nine comrades, often by stoning or clubbing. The remaining soldiers were given rations of barley instead of wheat and forced to sleep outside the Roman encampment.
Because the punishment fell by lot, all soldiers in the group were eligible for execution, regardless of the individual degree of fault, or rank and distinction. The leadership was usually executed independently of the one in ten deaths of the rank and file.
Read more about this topic: Decimation (Roman Army)