Doing something "randomly" means doing it without a plan or a reason. In the example above, "picking people randomly" means voting for candidates based on things like their names, their location on the ballot, and so on.
Some other examples of doing things "randomly" include:
I randomly decided to drive to the beach on Saturday.
Police aren't allowed to just go out and randomly search people's homes and vehicles. They have to have a warrant.