The group leader takes a number of straws (or similarly long cylindrical objects) and ensures that one of them is physically shorter than the others.
This practice is epitomized in the cliché "drawing the short straw"-to mean being randomly, unluckily, or unfairly selected to perform a task, at the risk of suffering a penalty.