Sometimes it's random and sometimes it's meant to look random, but they are actually looking for someone or something specific.
The carrier, flights, and what the searches consist of can vary. Sometimes it is just 1-2 Officers doing random ID matches to BP's.