It means 'randomly choosing'.
The idea is that you write people's names on a piece of paper, and put all the papers in a hat (or some other container), someone pulls out a piece of paper, and the person whose name is written on it is selected.
It's a reasonably common way of randomly choosing between a few alternatives.