It is a means of selecting who will do something.
The same number of straws [stem of wheat/barley/oats] are taken as there are individuals. One straw is cut in half. The straws are then held so that you cannot see the short straw. Each person takes one straw. The person who takes the short straw is the selected person.